summaryrefslogtreecommitdiff
path: root/src/gui/gui-key.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui-key.c')
-rw-r--r--src/gui/gui-key.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/gui-key.c b/src/gui/gui-key.c
index ab776f2c5..3e5a552fa 100644
--- a/src/gui/gui-key.c
+++ b/src/gui/gui-key.c
@@ -2243,10 +2243,8 @@ gui_key_focus (const char *key, int context)
rc = gui_key_focus_command (key, context, hashtable_focus);
end:
- if (focus_info1)
- gui_focus_free_info (focus_info1);
- if (focus_info2)
- gui_focus_free_info (focus_info2);
+ gui_focus_free_info (focus_info1);
+ gui_focus_free_info (focus_info2);
hashtable_free (hashtable_focus[0]);
hashtable_free (hashtable_focus[1]);