From d37ec4b473b4191f871a02fbb04d915a222ae5ba Mon Sep 17 00:00:00 2001 From: Monsta Date: Thu, 6 Nov 2014 13:26:30 +0300 Subject: don't leak memory --- mate-panel/panel-run-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mate-panel/panel-run-dialog.c') 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)) { -- cgit v1.2.1