diff options
Diffstat (limited to 'src/search/SearchController.cpp')
| -rw-r--r-- | src/search/SearchController.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/search/SearchController.cpp b/src/search/SearchController.cpp index 6aff962..efd33ac 100644 --- a/src/search/SearchController.cpp +++ b/src/search/SearchController.cpp @@ -68,9 +68,13 @@ void SearchController::Exit() SearchController::~SearchController() { + if(activePreview) + delete activePreview; + if(ui::Engine::Ref().GetWindow() == searchView) + { + ui::Engine::Ref().CloseWindow(); + } delete searchModel; - if(searchView) - delete searchView; } void SearchController::DoSearch(std::string query) |
