Removed recent change since it caused havoc with themes in progress. If this

causes a memory leak issue it should be solved elsewhere.
This commit is contained in:
Pieter Hulshoff 2017-02-04 17:51:43 +01:00
parent 6563ae336e
commit 7b3016bacf

View File

@ -523,10 +523,7 @@ bool Page::popCollection()
playlist_ = info->playlist; playlist_ = info->playlist;
playlistChange(); playlistChange();
// Remove references to the collection we're about to delete and pop the menu
menuDepth_--; menuDepth_--;
activeMenu_->collectionName = "";
activeMenu_->setItems(NULL);
activeMenu_ = menus_[menuDepth_ - 1]; activeMenu_ = menus_[menuDepth_ - 1];
for(std::vector<Component *>::iterator it = LayerComponents.begin(); it != LayerComponents.end(); ++it) for(std::vector<Component *>::iterator it = LayerComponents.begin(); it != LayerComponents.end(); ++it)