Don't rely on Window class freeing for components that may not be added
This commit is contained in:
parent
1fceab6e4a
commit
83ccd65b14
@ -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)
|
||||
|
Reference in New Issue
Block a user