summaryrefslogtreecommitdiff
path: root/src/search/SearchView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/SearchView.cpp')
-rw-r--r--src/search/SearchView.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/search/SearchView.cpp b/src/search/SearchView.cpp
index f1f6c3b..3e73496 100644
--- a/src/search/SearchView.cpp
+++ b/src/search/SearchView.cpp
@@ -252,6 +252,13 @@ SearchView::~SearchView()
RemoveComponent(previousButton);
RemoveComponent(infoLabel);
+ for(int i = 0; i < saveButtons.size(); i++)
+ {
+ RemoveComponent(saveButtons[i]);
+ delete saveButtons[i];
+ }
+ saveButtons.clear();
+
delete nextButton;
delete previousButton;
delete infoLabel;