fix mem leak
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 20:56:48 +0000 (20:56 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 20:56:48 +0000 (20:56 +0000)
openbox/action.c
openbox/config.c

index 51de17d..0a969a8 100644 (file)
@@ -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);
         }
index 42a9433..c840f83 100644 (file)
@@ -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);