* Fixed locking order reversion as spotted by Stefano.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32744 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-08-27 09:27:03 +00:00
parent a5a64d5481
commit 8bca36b1cd
+2 -3
View File
@@ -158,9 +158,10 @@ ServerApp::~ServerApp()
fWindowListLock.Unlock();
// wait for the windows to quit
snooze(20000);
fDesktop->RevertScreenModes(fTemporaryDisplayModeChange);
fWindowListLock.Lock();
for (int32 i = fWindowList.CountItems(); i-- > 0;) {
ServerWindow* window = fWindowList.ItemAt(i);
@@ -187,8 +188,6 @@ ServerApp::~ServerApp()
fWindowListLock.Lock();
}
fDesktop->RevertScreenModes(fTemporaryDisplayModeChange);
for (int32 i = fBitmapList.CountItems(); i-- > 0;) {
gBitmapManager->DeleteBitmap((ServerBitmap*)fBitmapList.ItemAt(i));
}