aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index c8b1735..4c56d49 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -598,16 +598,9 @@ void FbWinFrame::addRightButton(FbTk::Button *btn) {
598} 598}
599 599
600void FbWinFrame::removeAllButtons() { 600void FbWinFrame::removeAllButtons() {
601 // destroy left side 601
602 while (!m_buttons_left.empty()) { 602 FbTk::STLUtil::destroyAndClear(m_buttons_left);
603 delete m_buttons_left.back(); 603 FbTk::STLUtil::destroyAndClear(m_buttons_right);
604 m_buttons_left.pop_back();
605 }
606 // destroy right side
607 while (!m_buttons_right.empty()) {
608 delete m_buttons_right.back();
609 m_buttons_right.pop_back();
610 }
611} 604}
612 605
613void FbWinFrame::createTab(FbTk::Button &button) { 606void FbWinFrame::createTab(FbTk::Button &button) {