[tracker] tracker-writeback: Do not unref the GFileInfo too early



commit 3ff16879a3455ab925b6636df67335cef2f02828
Author: Carlos Garnacho <carlos lanedo com>
Date:   Thu Jul 28 17:33:31 2011 +0200

    tracker-writeback: Do not unref the GFileInfo too early
    
    it is used in the creation of the temporary file.

 src/tracker-writeback/tracker-writeback-file.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-file.c b/src/tracker-writeback/tracker-writeback-file.c
index 06ceef5..15cf8f8 100644
--- a/src/tracker-writeback/tracker-writeback-file.c
+++ b/src/tracker-writeback/tracker-writeback-file.c
@@ -182,6 +182,8 @@ tracker_writeback_file_update_metadata (TrackerWriteback        *writeback,
 		/* module does not support writeback for this file */
 		g_object_unref (file_info);
 		g_object_unref (file);
+		g_object_unref (file_info);
+
 		return FALSE;
 	}
 
@@ -192,6 +194,8 @@ tracker_writeback_file_update_metadata (TrackerWriteback        *writeback,
 
 	if (!tmp_file) {
 		g_object_unref (file);
+		g_object_unref (file_info);
+
 		return FALSE;
 	}
 
@@ -207,6 +211,7 @@ tracker_writeback_file_update_metadata (TrackerWriteback        *writeback,
 	             NULL, NULL, NULL, NULL);
 
 	g_object_unref (tmp_file);
+	g_object_unref (file_info);
 	g_object_unref (file);
 
 	return retval;



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