summaryrefslogtreecommitdiff
path: root/src/search
diff options
context:
space:
mode:
Diffstat (limited to 'src/search')
-rw-r--r--src/search/SearchController.cpp1
-rw-r--r--src/search/SearchView.cpp7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/search/SearchController.cpp b/src/search/SearchController.cpp
index aff9636..68fe978 100644
--- a/src/search/SearchController.cpp
+++ b/src/search/SearchController.cpp
@@ -89,6 +89,7 @@ SearchController::~SearchController()
ui::Engine::Ref().CloseWindow();
}
delete searchModel;
+ delete searchView;
}
void SearchController::DoSearch(std::string query)
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)