aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 37d40fc..04bcc03 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.23 2003/05/24 05:49:31 rathnor Exp $ 25// $Id: Menu.cc,v 1.24 2003/05/24 12:34:16 rathnor Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -181,10 +181,7 @@ Menu::~Menu() {
181 if (shown && shown->window() == window()) 181 if (shown && shown->window() == window())
182 shown = 0; 182 shown = 0;
183 183
184 while (!menuitems.empty()) { 184 removeAll();
185 delete menuitems.back();
186 menuitems.pop_back();
187 }
188 185
189 if (menu.title_pixmap) 186 if (menu.title_pixmap)
190 m_image_ctrl.removeImage(menu.title_pixmap); 187 m_image_ctrl.removeImage(menu.title_pixmap);