From 17867066967e7de14b01339fa569c38c8158e525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 1 Jul 2005 08:10:42 +0000 Subject: [PATCH] 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 --- src/servers/app/ServerApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/ServerApp.cpp b/src/servers/app/ServerApp.cpp index d0f5f07d72..c10f61a9a3 100644 --- a/src/servers/app/ServerApp.cpp +++ b/src/servers/app/ServerApp.cpp @@ -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(fBitmapList.ItemAt(i)); + gBitmapManager->DeleteBitmap(static_cast(fBitmapList.ItemAt(i))); } for (int32 i = 0; i < fPictureList.CountItems(); i++) {