diff options
author | simonb <simonb> | 2006-04-22 15:37:04 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-22 15:37:04 (GMT) |
commit | 932eebe0ddbc611ccf72cbebebbde656ae2d08ec (patch) | |
tree | d83c10c1393094cfcef80d29f12634e6a5f04430 /src/MenuCreator.cc | |
parent | 23cdfaaff3dcae62d50bddb087ecac94bca5be4c (diff) | |
download | fluxbox-932eebe0ddbc611ccf72cbebebbde656ae2d08ec.zip fluxbox-932eebe0ddbc611ccf72cbebebbde656ae2d08ec.tar.bz2 |
couple of memory fixes from valgrind
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r-- | src/MenuCreator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc index 9d2b4fa..4a2cc0e 100644 --- a/src/MenuCreator.cc +++ b/src/MenuCreator.cc | |||
@@ -458,7 +458,7 @@ FbTk::Menu *MenuCreator::createMenuType(const std::string &type, int screen_num) | |||
458 | menu->disableTitle(); // not titlebar | 458 | menu->disableTitle(); // not titlebar |
459 | if (screen->windowMenuFilename().empty() || | 459 | if (screen->windowMenuFilename().empty() || |
460 | ! createWindowMenuFromFile(screen->windowMenuFilename(), *menu, true)) { | 460 | ! createWindowMenuFromFile(screen->windowMenuFilename(), *menu, true)) { |
461 | char default_menu[][11] = { | 461 | char *default_menu[] = { |
462 | "shade", | 462 | "shade", |
463 | "stick", | 463 | "stick", |
464 | "maximize", | 464 | "maximize", |
@@ -472,7 +472,7 @@ FbTk::Menu *MenuCreator::createMenuType(const std::string &type, int screen_num) | |||
472 | "close", | 472 | "close", |
473 | 0 | 473 | 0 |
474 | }; | 474 | }; |
475 | for (unsigned int i=0; i < sizeof(default_menu); ++i) | 475 | for (unsigned int i=0; default_menu[i]; ++i) |
476 | createWindowMenuItem(default_menu[i], "", *menu); | 476 | createWindowMenuItem(default_menu[i], "", *menu); |
477 | } | 477 | } |
478 | menu->reconfigure(); // update graphics | 478 | menu->reconfigure(); // update graphics |