stk: Remove unneeded assignment

This commit is contained in:
Denis Kenzior 2010-12-27 15:09:03 -06:00
parent 1e5d29012b
commit 3c0a32c102
1 changed files with 1 additions and 3 deletions

View File

@ -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;