The parent menu of the attributes menu might be showing, thus it needs

to be locked before its font is retrieved or items are added.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40623 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2011-02-22 22:46:48 +00:00
parent 211be12926
commit 96f9949a2d

View File

@ -3272,6 +3272,8 @@ BMenu*
BContainerWindow::AddMimeMenu(const BMimeType& mimeType, bool isSuperType,
BMenu* menu, int32 start)
{
AutoLock<BLooper> _(menu->Looper());
if (!mimeType.IsValid())
return NULL;