synced to 1.8 from OpenTracker CVS

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17496 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2006-05-17 17:07:41 +00:00
parent 2c7fad579c
commit 3702e4734e
+7
View File
@@ -144,9 +144,16 @@ TBarWindow::MenusEnded()
{
BWindow::MenusEnded();
if (!sBeMenu->LockLooper()) {
// TODO: is this ok?
return;
}
BMenuItem *item = NULL;
while ((item = sBeMenu->RemoveItem((int32)0)) != NULL)
delete item;
sBeMenu->UnlockLooper();
}