From 7dfa04527ca74a8512c56851f06e9924fc5f7800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 17 Oct 2006 20:40:26 +0000 Subject: [PATCH] Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19074 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerApp.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/servers/app/ServerApp.cpp b/src/servers/app/ServerApp.cpp index 6fc7408e61..b7f928ca68 100644 --- a/src/servers/app/ServerApp.cpp +++ b/src/servers/app/ServerApp.cpp @@ -173,13 +173,11 @@ ServerApp::~ServerApp() fWindowListLock.Lock(); } - // first, make sure our monitor thread doesn't - for (int32 i = 0; i < fBitmapList.CountItems(); i++) { + for (int32 i = fBitmapList.CountItems(); i-- > 0;) { gBitmapManager->DeleteBitmap(static_cast(fBitmapList.ItemAt(i))); } - int32 pictureCount = fPictureList.CountItems(); - for (int32 i = 0; i < pictureCount; i++) { + for (int32 i = fPictureList.CountItems(); i-- > 0;) { delete (ServerPicture*)fPictureList.ItemAtFast(i); }