Don't delete the subpictures in the ServerPicture destructor. They are

kept in a list by ServerApp, and deleted by its destructor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21924 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-08-13 13:52:16 +00:00
parent 277571370c
commit b1b69140a1
+3 -5
View File
@@ -778,11 +778,9 @@ ServerPicture::~ServerPicture()
delete fData; delete fData;
gTokenSpace.RemoveToken(fToken); gTokenSpace.RemoveToken(fToken);
if (fPictures != NULL) { // We don't delete the subpictures themselves, the ServerApp keeps
for (int32 i = fPictures->CountItems() - 1; i >= 0; i--) // them in a list and will delete them on quit.
delete static_cast<ServerPicture *>(fPictures->ItemAtFast(i)); delete fPictures;
delete fPictures;
}
} }