[gthumb] Fix improper removal of link from monitor gfile list



commit dc7a26e2fba297b9977ca2219652729274dde927
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Thu Jun 25 08:48:57 2009 -0400

    Fix improper removal of link from monitor gfile list

 libgthumb/gth-monitor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgthumb/gth-monitor.c b/libgthumb/gth-monitor.c
index b3ceda1..66766e7 100644
--- a/libgthumb/gth-monitor.c
+++ b/libgthumb/gth-monitor.c
@@ -283,7 +283,8 @@ remove_if_present (GList            **monitor_events,
 	link = gfile_list_find_gfile (list, gfile);
 	if (link != NULL) {
 		monitor_events[type] = g_list_remove_link (list, link);
-		g_object_unref (link);
+		g_object_unref (link->data);
+		g_list_free_1 (link);
 		return TRUE;
 	}
 



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