summaryrefslogtreecommitdiff
path: root/src/search/SearchController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/SearchController.cpp')
-rw-r--r--src/search/SearchController.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/search/SearchController.cpp b/src/search/SearchController.cpp
index 012b761..26b54bb 100644
--- a/src/search/SearchController.cpp
+++ b/src/search/SearchController.cpp
@@ -88,6 +88,8 @@ void SearchController::Exit()
}
if(callback)
callback->ControllerExit();
+ delete callback;
+ callback = NULL;
//HasExited = true;
}
@@ -101,6 +103,7 @@ SearchController::~SearchController()
}
delete searchModel;
delete searchView;
+ delete callback;
}
void SearchController::DoSearch(std::string query, bool now)