[gupnp] tests: unref objects after running test



commit d1b03cbb218c05f05485febed931d614ebdb9a5b
Author: Jussi Kukkonen <jussi kukkonen intel com>
Date:   Sat Jan 18 20:56:24 2014 +0200

    tests: unref objects after running test
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678701

 tests/gtest/test-bugs.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/gtest/test-bugs.c b/tests/gtest/test-bugs.c
index c5c7e0b..5f5cdfd 100644
--- a/tests/gtest/test-bugs.c
+++ b/tests/gtest/test-bugs.c
@@ -169,6 +169,12 @@ test_bgo_696762 (void)
     timeout_id = g_timeout_add_seconds (2, test_on_timeout, &(data.loop));
     g_main_loop_run (data.loop);
     g_source_remove (timeout_id);
+
+    g_main_loop_unref (data.loop);
+    g_object_unref (data.proxy);
+    g_object_unref (cp);
+    g_object_unref (rd);
+    g_object_unref (context);
 }
 
 int


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