You're not supposed to delete bitmaps yourself; you have to let the

bitmap manager do the job.
This fixes a possible crashing bug on quit, a giant memory hole, and
probably also a possible crash during runtime.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13380 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-07-01 08:10:42 +00:00
parent 5712a788a1
commit 1786706696
+1 -1
View File
@@ -183,7 +183,7 @@ ServerApp::~ServerApp(void)
// first, make sure our monitor thread doesn't
for (int32 i = 0; i < fBitmapList.CountItems(); i++) {
delete static_cast<ServerBitmap *>(fBitmapList.ItemAt(i));
gBitmapManager->DeleteBitmap(static_cast<ServerBitmap *>(fBitmapList.ItemAt(i)));
}
for (int32 i = 0; i < fPictureList.CountItems(); i++) {