summaryrefslogtreecommitdiff
path: root/src/search/SearchModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/SearchModel.cpp')
-rw-r--r--src/search/SearchModel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/search/SearchModel.cpp b/src/search/SearchModel.cpp
index 96d340a..3b2d0e0 100644
--- a/src/search/SearchModel.cpp
+++ b/src/search/SearchModel.cpp
@@ -12,7 +12,9 @@ void SearchModel::UpdateSaveList(std::string query)
lastError = "";
saveList.clear();
notifySaveListChanged();
- saveList = Client::Ref().SearchSaves(0, 12, query, "");
+ vector<Save*> * tempSaveList = Client::Ref().SearchSaves(0, 12, query, "");
+ saveList = *tempSaveList;
+ delete tempSaveList;
if(!saveList.size())
{
lastError = Client::Ref().GetLastError();
@@ -24,7 +26,7 @@ void SearchModel::UpdateSaveList(std::string query)
notifySaveListChanged();
}
-vector<Save> SearchModel::GetSaveList()
+vector<Save*> SearchModel::GetSaveList()
{
return saveList;
}