aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-24 13:34:14 (GMT)
committersimonb <simonb>2006-04-24 13:34:14 (GMT)
commitf6a072430d4de159e229d6172adc5ba5ae985512 (patch)
treee87832fba92188131c4e9441b72c0e9c03666660 /src/MenuCreator.cc
parent731f0deaafff3a4fe4353bbfc421a5dc3d5a2337 (diff)
downloadfluxbox_pavel-f6a072430d4de159e229d6172adc5ba5ae985512.zip
fluxbox_pavel-f6a072430d4de159e229d6172adc5ba5ae985512.tar.bz2
fix memory leaks in menu code
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r--src/MenuCreator.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index 4a2cc0e..c97d51d 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -454,7 +454,6 @@ FbTk::Menu *MenuCreator::createMenuType(const std::string &type, int screen_num)
454 } else if (type == "windowmenu") { 454 } else if (type == "windowmenu") {
455 FbTk::Menu *menu = screen->createMenu(""); 455 FbTk::Menu *menu = screen->createMenu("");
456 456
457 menu->removeAll(); // clear old items
458 menu->disableTitle(); // not titlebar 457 menu->disableTitle(); // not titlebar
459 if (screen->windowMenuFilename().empty() || 458 if (screen->windowMenuFilename().empty() ||
460 ! createWindowMenuFromFile(screen->windowMenuFilename(), *menu, true)) { 459 ! createWindowMenuFromFile(screen->windowMenuFilename(), *menu, true)) {