mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 20:04:01 +02:00
Don't rely on Window class freeing for components that may not be added
This commit is contained in:
@@ -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