From fb1ef42d4265434ce1c2e1b0ec35bf5b54f0abca Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 29 Apr 2002 01:58:28 +0000 Subject: [PATCH] fixed bug from converting over to STL --- src/Basemenu.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Basemenu.cc b/src/Basemenu.cc index e6cb4d12..8a3429a0 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -158,10 +158,8 @@ Basemenu::~Basemenu(void) { if (shown && shown->getWindowID() == getWindowID()) shown = (Basemenu *) 0; - while (!menuitems.empty()) { - delete menuitems[0]; - menuitems.erase(menuitems.begin()); - } + while (!menuitems.empty()) + remove(0); if (menu.label) delete [] menu.label; -- 2.45.2