[libgdata/wip/rishi/drive: 2/4] tests: Don't leak the authorizer



commit 4df59fb37cdf0c22eccef942039a0c8aba4702ed
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]