summaryrefslogtreecommitdiff
path: root/gsearchtool/gsearchtool-callbacks.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-06 15:10:46 +0300
committerinfirit <[email protected]>2014-12-15 23:14:18 +0100
commit866cc139fea2f93da109a2b2fed65feb84e6aabc (patch)
treec964178026c3383bf95be2c0336c754bec9fdb5c /gsearchtool/gsearchtool-callbacks.c
parente9b171514af734cbc413452804f2d9201fb513c3 (diff)
downloadmate-utils-866cc139fea2f93da109a2b2fed65feb84e6aabc.tar.bz2
mate-utils-866cc139fea2f93da109a2b2fed65feb84e6aabc.tar.xz
don't leak memory
Diffstat (limited to 'gsearchtool/gsearchtool-callbacks.c')
-rw-r--r--gsearchtool/gsearchtool-callbacks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gsearchtool/gsearchtool-callbacks.c b/gsearchtool/gsearchtool-callbacks.c
index 806be3e7..be2244e9 100644
--- a/gsearchtool/gsearchtool-callbacks.c
+++ b/gsearchtool/gsearchtool-callbacks.c
@@ -828,14 +828,15 @@ move_to_trash_cb (GtkAction * action,
COLUMN_LOCALE_FILE, &locale_filename,
COLUMN_NO_FILES_FOUND, &no_files_found,
-1);
- utf8_filename = g_filename_display_name (locale_filename);
if (no_files_found) {
g_free (utf8_basename);
g_free (locale_filename);
return;
}
-
+
+ utf8_filename = g_filename_display_name (locale_filename);
+
if (idx + 1 == total) {
last_selected_path = gtk_tree_model_get_path (GTK_TREE_MODEL (gsearch->search_results_list_store), &iter);
}