[libgdata/libgdata-0-7] contacts: Fix memory leaks in the contacts	test suite
- From: Philip Withnall <pwithnall src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [libgdata/libgdata-0-7] contacts: Fix memory leaks in the contacts	test suite
 
- Date: Fri, 10 Dec 2010 22:40:12 +0000 (UTC)
 
commit ef9b89684dad3e3f11b565e0c0eb9135750de56c
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 10 11:18:49 2010 +0000
    contacts: Fix memory leaks in the contacts test suite
 gdata/tests/contacts.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdata/tests/contacts.c b/gdata/tests/contacts.c
index 4d22bdf..a257cfb 100644
--- a/gdata/tests/contacts.c
+++ b/gdata/tests/contacts.c
@@ -1707,9 +1707,10 @@ test_batch_async (BatchAsyncData *data, gconstpointer service)
 	main_loop = g_main_loop_new (NULL, TRUE);
 
 	gdata_batch_operation_run_async (operation, NULL, (GAsyncReadyCallback) test_batch_async_cb, main_loop);
-
 	g_main_loop_run (main_loop);
+
 	g_main_loop_unref (main_loop);
+	g_object_unref (operation);
 }
 
 static void
@@ -1746,6 +1747,7 @@ test_batch_async_cancellation (BatchAsyncData *data, gconstpointer service)
 	g_main_loop_run (main_loop);
 	g_main_loop_unref (main_loop);
 	g_object_unref (cancellable);
+	g_object_unref (operation);
 }
 
 static void
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]