summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stk.c b/src/stk.c
index 5e5c2e4a..bec46ea7 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -1107,10 +1107,8 @@ static gboolean handle_command_set_up_menu(const struct stk_command *cmd,
if (menu == NULL && stk->main_menu == NULL)
return TRUE;
- if (stk->main_menu) {
+ if (stk->main_menu)
stk_menu_free(stk->main_menu);
- stk->main_menu = NULL;
- }
stk->main_menu = menu;