summaryrefslogtreecommitdiff
path: root/src/search/SearchController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-21 13:19:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-21 13:19:10 (GMT)
commit8ec6aae617525d13697d1c2a612ac37be0f341d5 (patch)
treee4cdf0795e0f77505acc0c1be544532912569959 /src/search/SearchController.cpp
parentd364a27ed6da5d75d1880c98c3fb2be683c5b915 (diff)
downloadpowder-8ec6aae617525d13697d1c2a612ac37be0f341d5.zip
powder-8ec6aae617525d13697d1c2a612ac37be0f341d5.tar.gz
Better cleanup for simulation - fix memory leaks
Diffstat (limited to 'src/search/SearchController.cpp')
-rw-r--r--src/search/SearchController.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/search/SearchController.cpp b/src/search/SearchController.cpp
index 11871fd..a9b346f 100644
--- a/src/search/SearchController.cpp
+++ b/src/search/SearchController.cpp
@@ -17,6 +17,12 @@ SearchController::SearchController()
//windowPanel.AddChild();
}
+SearchController::~SearchController()
+{
+ delete searchModel;
+ delete searchView;
+}
+
void SearchController::DoSearch(std::string query)
{
searchModel->UpdateSaveList(query);