[libgdata] tests: Fix minor memory leaks in general test suite



commit ce7bc546da6176ac4bec698f27792fe834c4a45d
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Aug 29 23:03:53 2013 -0600

    tests: Fix minor memory leaks in general test suite

 gdata/tests/general.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdata/tests/general.c b/gdata/tests/general.c
index f4b6d4e..7c23fc9 100644
--- a/gdata/tests/general.c
+++ b/gdata/tests/general.c
@@ -616,6 +616,7 @@ test_entry_links_remove (void)
 
        g_object_unref (link2_);
        g_object_unref (link_);
+       g_object_unref (entry);
 }
 
 static void
@@ -1057,6 +1058,8 @@ test_query_pagination (void)
        query_uri = gdata_query_get_query_uri (query, "http://example.com/";);
        g_assert_cmpstr (query_uri, ==, "http://example.com/?q=test&start-index=30&max-results=10";);
        g_free (query_uri);
+
+       g_object_unref (query);
 }
 
 static void


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