[tracker/writeback-refactor-rebase: 50/65] tracker-miner-fs: Fix ref leak



commit d6dad5167a2db00934b7a57aa85a8fed13cf285e
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]