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
1 changed files with 3 additions and 5 deletions

View File

@ -778,11 +778,9 @@ ServerPicture::~ServerPicture()
delete fData;
gTokenSpace.RemoveToken(fToken);
if (fPictures != NULL) {
for (int32 i = fPictures->CountItems() - 1; i >= 0; i--)
delete static_cast<ServerPicture *>(fPictures->ItemAtFast(i));
delete fPictures;
}
// We don't delete the subpictures themselves, the ServerApp keeps
// them in a list and will delete them on quit.
delete fPictures;
}