summaryrefslogtreecommitdiff
path: root/src/search/SearchView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-18 15:00:34 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-18 15:00:34 (GMT)
commit83ccd65b1460230f02639d1feefacb47d9ad2ad3 (patch)
treeb74c5aab9d78d00b48016c92f84471166bd9f7b2 /src/search/SearchView.cpp
parent1fceab6e4af12964143a08089a5cb3d95775cbf6 (diff)
downloadpowder-83ccd65b1460230f02639d1feefacb47d9ad2ad3.zip
powder-83ccd65b1460230f02639d1feefacb47d9ad2ad3.tar.gz
Don't rely on Window class freeing for components that may not be added
Diffstat (limited to 'src/search/SearchView.cpp')
-rw-r--r--src/search/SearchView.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/search/SearchView.cpp b/src/search/SearchView.cpp
index 47392fa..2c56ae0 100644
--- a/src/search/SearchView.cpp
+++ b/src/search/SearchView.cpp
@@ -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)