[glib] Plug a small memleak in gdbus-export test



commit 1eb5c7ceddd88bb198a01384684e52e7080921a9
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 25 20:09:26 2013 -0500

    Plug a small memleak in gdbus-export test

 gio/tests/gdbus-export.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gdbus-export.c b/gio/tests/gdbus-export.c
index bc62bfd..f053d53 100644
--- a/gio/tests/gdbus-export.c
+++ b/gio/tests/gdbus-export.c
@@ -846,6 +846,7 @@ test_dispatch_thread_func (gpointer user_data)
   g_assert (g_variant_is_of_type (inner, G_VARIANT_TYPE_STRING));
   g_assert_cmpstr (g_variant_get_string (inner, NULL), ==, "Property `PropertyUno' Is What It Is!");
   g_variant_unref (value);
+  g_variant_unref (inner);
 
   error = NULL;
   value = g_dbus_proxy_call_sync (foo_proxy,



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