diff options
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/config.c | 8 | ||||
| -rw-r--r-- | openbox/translate.c | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/openbox/config.c b/openbox/config.c index 2bdd1966..1bf63e58 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -320,14 +320,14 @@ static void parse_per_app_settings(ObParseInst *i, xmlDocPtr doc, config_per_app_settings = g_slist_append(config_per_app_settings, (gpointer) settings); + g_free(name); + g_free(class); + g_free(role); + name = class = role = NULL; } app = parse_find_node("application", app->next); } - - g_free(name); - g_free(class); - g_free(role); } /* diff --git a/openbox/translate.c b/openbox/translate.c index 5b2b4ebe..e7962ad5 100644 --- a/openbox/translate.c +++ b/openbox/translate.c @@ -179,5 +179,6 @@ gunichar translate_unichar(guint keycode) if (unikey == (gunichar)-1 || unikey == (gunichar)-2 || unikey == 0) unikey = 0; } + g_free(key); return unikey; } |
