Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19074 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-10-17 20:40:26 +00:00
parent 2f8e7a3a4d
commit 7dfa04527c
1 changed files with 2 additions and 4 deletions

View File

@ -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<ServerBitmap *>(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);
}