fixed a crash into the debugger because the looper was not locked in BMenuBar::Track(), Stefano, please review...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13173 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-06-16 12:34:46 +00:00
parent 99b9d5ac8a
commit 9b0c5e413c
+4 -1
View File
@@ -443,8 +443,11 @@ BMenuBar::Track(int32 *action, int32 startIndex, bool showMenu)
window->Unlock();
}
if (resultItem != NULL)
if (resultItem != NULL) {
window->Lock();
resultItem->Invoke();
window->Unlock();
}
return resultItem;
}