all repos — openbox @ fb1ef42d4265434ce1c2e1b0ec35bf5b54f0abca

openbox fork - make it a bit more like ryudo

fixed bug from converting over to STL
Dana Jansens danakj@orodu.net
commit

fb1ef42d4265434ce1c2e1b0ec35bf5b54f0abca

parent

65118aafb62906d1b75906c955d0167c41430750

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M src/Basemenu.ccsrc/Basemenu.cc

@@ -158,10 +158,8 @@

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;