summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--command/src/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/command/src/command.c b/command/src/command.c
index 120aa9c8..ac756eb2 100644
--- a/command/src/command.c
+++ b/command/src/command.c
@@ -225,12 +225,16 @@ settings_command_changed (GSettings *settings, gchar *key, CommandApplet *comman
cmdline = g_settings_get_string (command_applet->settings, COMMAND_KEY);
if (strlen (cmdline) == 0 || g_strcmp0(command_applet->cmdline, cmdline) == 0)
+ {
+ g_free (cmdline);
return;
+ }
if (!g_shell_parse_argv (cmdline, NULL, &argv, &error))
{
gtk_label_set_text (command_applet->label, ERROR_OUTPUT);
g_clear_error (&error);
+ g_free (cmdline);
return;
}
g_strfreev(argv);