The BWindow destructor is called with the window locked, but we need to unlock to acquire the menu semaphore. Updated BBitmap to lock he window on quit too. This fixes last problem mentioned in bug 406
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18156 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -217,7 +217,10 @@ BBitmap::BBitmap(const BBitmap *source, bool acceptsViews,
|
||||
*/
|
||||
BBitmap::~BBitmap()
|
||||
{
|
||||
delete fWindow;
|
||||
if (fWindow != NULL) {
|
||||
fWindow->Lock();
|
||||
delete fWindow;
|
||||
}
|
||||
_CleanUp();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user