[gthumb] Fixed improper freeing of list data
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Fixed improper freeing of list data
- Date: Thu, 25 Jun 2009 12:18:50 +0000 (UTC)
commit 7091de52144bf0d1f399f2266c1286cfd17aefbe
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Thu Jun 25 08:18:27 2009 -0400
Fixed improper freeing of list data
src/gth-browser.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gth-browser.c b/src/gth-browser.c
index 48bf22f..f241311 100644
--- a/src/gth-browser.c
+++ b/src/gth-browser.c
@@ -1668,12 +1668,13 @@ save_pixbuf__image_saved_cb (FileData *file,
if (! closing) {
GList *file_list;
- file_list = g_list_prepend (NULL, (char*) file->utf8_path);
+ file_list = g_list_prepend (NULL, file->gfile);
+ g_object_ref (file->gfile);
if (gth_file_list_pos_from_path (browser->priv->file_list, file->utf8_path) != -1)
- gth_monitor_notify_update_files (GTH_MONITOR_EVENT_CHANGED, file_list);
+ gth_monitor_notify_update_gfiles (GTH_MONITOR_EVENT_CHANGED, file_list);
else
- gth_monitor_notify_update_files (GTH_MONITOR_EVENT_CREATED, file_list);
- g_list_free (file_list);
+ gth_monitor_notify_update_gfiles (GTH_MONITOR_EVENT_CREATED, file_list);
+ gfile_list_free (file_list);
}
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]