app_server: fix crash caused by missing locking
Change-Id: Ib9b0c2282f947c0c6ac61fc3e97f9eca7af8dda4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2891 Reviewed-by: waddlesplash <[email protected]> Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
@@ -922,6 +922,7 @@ ServerApp::_DispatchMessage(int32 code, BPrivate::LinkReceiver& link)
|
||||
int32 token = -1;
|
||||
link.Read<int32>(&token);
|
||||
|
||||
BAutolock _(fMapLocker);
|
||||
if (ServerPicture* subPicture = _FindPicture(token))
|
||||
picture->NestPicture(subPicture);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user