[empathy] tests: Fix memory leak of dbus connection



commit 00da7eadfe0ed7c4d080cc1ee076302c37ec0f7b
Author: Stef Walter <stefw collabora co uk>
Date:   Mon Dec 13 20:25:38 2010 +0000

    tests: Fix memory leak of dbus connection
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636258#c3

 tests/empathy-tls-test.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/empathy-tls-test.c b/tests/empathy-tls-test.c
index 1149166..31cadfb 100644
--- a/tests/empathy-tls-test.c
+++ b/tests/empathy-tls-test.c
@@ -325,6 +325,9 @@ teardown (Test *test, gconstpointer data)
 
   g_main_loop_unref (test->loop);
   test->loop = NULL;
+
+  g_object_unref (test->dbus);
+  test->dbus = NULL;
 }
 
 static void



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