[tracker/writeback-refactor-0.10: 49/64] tracker-miner-fs: Fix ref leak



commit 4006162b5ee387ca9c032d046be36c1eaedf414e
Author: Carlos Garnacho <carlos lanedo com>
Date:   Tue Jul 26 17:21:19 2011 +0200

    tracker-miner-fs: Fix ref leak
    
    The created GDBusMessage already sinks the floating reference
    to the GVariant, no need to double ref here.

 src/miners/fs/tracker-writeback-dispatcher.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-writeback-dispatcher.c b/src/miners/fs/tracker-writeback-dispatcher.c
index 366f28f..f0b1768 100644
--- a/src/miners/fs/tracker-writeback-dispatcher.c
+++ b/src/miners/fs/tracker-writeback-dispatcher.c
@@ -393,7 +393,7 @@ writeback_dispatcher_writeback_file (TrackerMinerFS *fs,
 	                        TRACKER_WRITEBACK_PATH,
 	                        TRACKER_WRITEBACK_INTERFACE,
 	                        "PerformWriteback",
-	                        g_variant_ref_sink (g_variant_builder_end (&builder)),
+	                        g_variant_builder_end (&builder),
 	                        NULL,
 	                        G_DBUS_CALL_FLAGS_NONE,
 	                        -1,



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