diff options
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/Save.h | 3 | ||||
| -rw-r--r-- | src/search/SearchController.cpp | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/search/Save.h b/src/search/Save.h index 5c471e1..4176e13 100644 --- a/src/search/Save.h +++ b/src/search/Save.h @@ -11,12 +11,13 @@ using namespace std; class Save { private: +public: int id; int date; int votesUp, votesDown; unsigned char * data; int dataLength; -public: + Save(Save & save); Save(int _id, int _date, int _votesUp, int _votesDown, string _userName, string _name); 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) |
