summaryrefslogtreecommitdiff
path: root/src/search
diff options
context:
space:
mode:
Diffstat (limited to 'src/search')
-rw-r--r--src/search/SearchController.cpp6
-rw-r--r--src/search/SearchController.h1
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);
};