[tracker/wip/passive-extraction] decorator: Plug a leak



commit 4af4b910ec92909d8c8ef3ef4d79fbbc0a145b0d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 20 20:02:22 2014 +0100

    decorator: Plug a leak
    
    The values returned by g_variant_get() must be freed.

 src/libtracker-miner/tracker-decorator.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index 54985ed..d298e0e 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -642,6 +642,8 @@ class_signal_cb (GDBusConnection *connection,
        g_variant_get (parameters, "(&sa(iiii)a(iiii))", NULL, &iter1, &iter2);
        handle_deletes (user_data, iter1);
        handle_updates (user_data, iter2);
+       g_variant_iter_free (iter1);
+       g_variant_iter_free (iter2);
 }
 
 static gboolean


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