[common] Fix small memory leak in window manager code
This commit is contained in:
parent
10506822d2
commit
f1372f438e
1 changed files with 3 additions and 3 deletions
|
@ -93,7 +93,7 @@ wm_common_get_current_keybindings (void)
|
|||
char *wm_name = wm_common_get_window_manager_property (wm_atom);
|
||||
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);
|
||||
g_free (wm_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue