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:
parent
277571370c
commit
b1b69140a1
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user