summaryrefslogtreecommitdiff
path: root/mate-panel/panel-run-dialog.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-06 13:26:30 +0300
committerMonsta <[email protected]>2014-11-23 23:21:35 +0300
commitd37ec4b473b4191f871a02fbb04d915a222ae5ba (patch)
treec1e1419b29bed10dd1dcd405787d0b5f3c4ee35e /mate-panel/panel-run-dialog.c
parent9bdf26a667fdb91c2aaa326b946e058677d97a0d (diff)
downloadmate-panel-d37ec4b473b4191f871a02fbb04d915a222ae5ba.tar.bz2
mate-panel-d37ec4b473b4191f871a02fbb04d915a222ae5ba.tar.xz
don't leak memory
Diffstat (limited to 'mate-panel/panel-run-dialog.c')
-rw-r--r--mate-panel/panel-run-dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c
index 0e9068f8..9da6ce03 100644
--- a/mate-panel/panel-run-dialog.c
+++ b/mate-panel/panel-run-dialog.c
@@ -622,13 +622,13 @@ fuzzy_command_match (const char *cmd1,
/* same for the user command */
tokens = g_strsplit (cmd2, " ", -1);
- word2 = g_path_get_basename (tokens [0]);
if (!tokens || !tokens [0]) {
g_free (word1);
g_strfreev (tokens);
return FALSE;
}
+ word2 = g_path_get_basename (tokens [0]);
g_strfreev (tokens);
if (!strcmp (word1, word2)) {