[libgdata] tests: Fix a memory leak in the PicasaWeb unit tests



commit 1971f8ed3b3cb76719490b956cfdcb44644d0a2d
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 3bc70f2..c72b04f 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -768,11 +768,12 @@ set_up_insert_album (InsertAlbumData *data, gconstpointer service)
 static void
 tear_down_insert_album (InsertAlbumData *data, gconstpointer service)
 {
-       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);
 }
 
 static void


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