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:
X512
2020-06-09 08:05:47 +00:00
committed by Axel Dörfler
parent ed257f056f
commit 638f8647a6
+1
View File
@@ -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);
}