From: Dana Jansens Date: Sun, 14 Sep 2003 20:56:48 +0000 (+0000) Subject: fix mem leak X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=673383d04702990cd79d7ceb98507cef70f818ec;p=chaz%2Fopenbox fix mem leak --- diff --git a/openbox/action.c b/openbox/action.c index 51de17da..0a969a86 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -800,6 +800,7 @@ void action_execute(union ActionData *data) g_warning("failed to execute '%s': %s", cmd, e->message); } + g_free(cmd); } else { g_warning("failed to convert '%s' from utf8", data->execute.path); } diff --git a/openbox/config.c b/openbox/config.c index 42a9433d..c840f83e 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -390,6 +390,8 @@ void config_shutdown() g_free(config_theme); + g_free(config_title_layout); + for (it = config_desktops_names; it; it = g_slist_next(it)) g_free(it->data); g_slist_free(config_desktops_names);