[libgdata/offline-testing] tests: Fix a memory leak in the PicasaWeb unit tests



commit df41756010229eaff6ecc59ba8edf442b366493f
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Jul 30 17:44:18 2013 +0200

    tests: Fix a memory leak in the PicasaWeb unit tests

 gdata/tests/picasaweb.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c
index c586bb8..926f020 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -804,12 +804,13 @@ tear_down_insert_album (InsertAlbumData *data, gconstpointer service)
 {
        gdata_test_mock_server_start_trace (mock_server, "teardown-insert-album");
 
-       g_object_unref (data->album);
-
        /* Clean up the evidence */
        gdata_service_delete_entry (GDATA_SERVICE (service), 
gdata_picasaweb_service_get_primary_authorization_domain (),
                                    GDATA_ENTRY (data->inserted_album), NULL, NULL);
 
+       g_object_unref (data->album);
+       g_object_unref (data->inserted_album);
+
        gdata_mock_server_end_trace (mock_server);
 }
 


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