[common] Fix small memory leak in window manager code

This commit is contained in:
Jens Granseuer 2009-12-09 12:04:32 +01:00
parent 10506822d2
commit f1372f438e

View file

@ -93,7 +93,7 @@ wm_common_get_current_keybindings (void)
char *wm_name = wm_common_get_window_manager_property (wm_atom); char *wm_name = wm_common_get_window_manager_property (wm_atom);
char *to_copy[] = { NULL, NULL }; char *to_copy[] = { NULL, NULL };
to_copy[0] = wm_name ? wm_name : g_strdup (WM_COMMON_UNKNOWN); to_copy[0] = wm_name ? wm_name : WM_COMMON_UNKNOWN;
results = g_strdupv (to_copy); results = g_strdupv (to_copy);
g_free (wm_name); g_free (wm_name);