[gnome-commander] search: ref found GnomeCmdFile



commit 05c2ace7d570a32aaa360440eda17054193925a6
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Apr 2 23:20:28 2011 +0200

    search: ref found GnomeCmdFile

 src/gnome-cmd-search-dialog.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index 3c60dc9..5a4d277 100755
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -324,7 +324,7 @@ static void search_dir_r (GnomeCmdDir *dir, SearchData *data)
 
                 // the file matched the search criteria, lets add it to the list
                 g_mutex_lock (data->pdata.mutex);
-                data->pdata.files = g_list_append (data->pdata.files, f);
+                data->pdata.files = g_list_append (data->pdata.files, f->ref());
                 g_mutex_unlock (data->pdata.mutex);
 
                 // also ref each directory that has a matching file
@@ -385,7 +385,7 @@ static gboolean update_search_status_widgets (SearchData *data)
 
     if (data->pdata.files)
     {
-        g_list_free (data->pdata.files);
+        gnome_cmd_file_list_free (data->pdata.files);
         data->pdata.files = NULL;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]