Don't rely on Window class freeing for components that may not be added

This commit is contained in:
Simon Robertshaw 2012-06-18 16:00:34 +01:00
parent 1fceab6e4a
commit 83ccd65b14

View File

@ -210,6 +210,13 @@ void SearchView::doSearch()
SearchView::~SearchView()
{
RemoveComponent(nextButton);
RemoveComponent(previousButton);
RemoveComponent(infoLabel);
delete nextButton;
delete previousButton;
delete infoLabel;
}
void SearchView::NotifySortChanged(SearchModel * sender)