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:
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user