[libgdata] tests: Don't leak the authorizer



commit 0c413dcc2c1a67504f9b039547e1733360414b69
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Sep 4 13:59:01 2015 +0200

    tests: Don't leak the authorizer
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684920

 gdata/tests/documents.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdata/tests/documents.c b/gdata/tests/documents.c
index 2423ca7..88bfac1 100644
--- a/gdata/tests/documents.c
+++ b/gdata/tests/documents.c
@@ -2218,5 +2218,7 @@ main (int argc, char *argv[])
        if (service != NULL)
                g_object_unref (service);
 
+       g_clear_object (&authorizer);
+
        return retval;
 }


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