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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user