diff options
| author | Simon 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) |
| commit | 8ec6aae617525d13697d1c2a612ac37be0f341d5 (patch) | |
| tree | e4cdf0795e0f77505acc0c1be544532912569959 /src/search | |
| parent | d364a27ed6da5d75d1880c98c3fb2be683c5b915 (diff) | |
| download | powder-8ec6aae617525d13697d1c2a612ac37be0f341d5.zip powder-8ec6aae617525d13697d1c2a612ac37be0f341d5.tar.gz | |
Better cleanup for simulation - fix memory leaks
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/SearchController.cpp | 6 | ||||
| -rw-r--r-- | src/search/SearchController.h | 1 |
2 files changed, 7 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); diff --git a/src/search/SearchController.h b/src/search/SearchController.h index 8676145..cbef93a 100644 --- a/src/search/SearchController.h +++ b/src/search/SearchController.h @@ -13,6 +13,7 @@ private: SearchView * searchView; public: SearchController(); + ~SearchController(); SearchView * GetView() { return searchView; } void DoSearch(std::string query); }; |
