[tracker/tracker-0.10] extract: Plug huge leak



commit d937324d88a23be319b9e3e6709e2e5bc805d473
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Apr 6 17:37:11 2011 +0200

    extract: Plug huge leak
    
    Every GDBusMethodInvocation in handle_method_get_metadata_fast() was
    being leaked, since that function is handling the replies itself.

 src/tracker-extract/tracker-extract.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 8fca4da..7016c22 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -896,6 +896,11 @@ bail_out:
 	g_object_unref (fd_list);
 	g_object_unref (reply);
 
+	/* We are replying ourselves to the
+	 * message, so just unref the invocation
+	 */
+	g_object_unref (invocation);
+
 	if (!priv->disable_shutdown) {
 		/* Unset alarm so the extractor doesn't die when it's idle */
 		alarm (0);



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