[libgfbgraph] simple-authorizer: Fix memory leak



commit bb6eaaa926484a45f47382c24c1ccff6e3d5dd91
Author: Leesoo Ahn <yisooan fedoraproject org>
Date:   Sat Oct 26 16:04:46 2019 +0900

    simple-authorizer: Fix memory leak
    
    Private property must be freed after it is done.
    
    https://gitlab.gnome.org/GNOME/libgfbgraph/issues/3

 gfbgraph/gfbgraph-simple-authorizer.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gfbgraph/gfbgraph-simple-authorizer.c b/gfbgraph/gfbgraph-simple-authorizer.c
index ab1041f..6e0647d 100644
--- a/gfbgraph/gfbgraph-simple-authorizer.c
+++ b/gfbgraph/gfbgraph-simple-authorizer.c
@@ -99,6 +99,12 @@ gfbgraph_simple_authorizer_class_init (GFBGraphSimpleAuthorizerClass *klass)
 static void
 gfbgraph_simple_authorizer_finalize (GObject *obj)
 {
+        GFBGraphSimpleAuthorizerPrivate *priv;
+
+        priv = GFBGRAPH_SIMPLE_AUTHORIZER_GET_PRIVATE (obj);
+
+        g_free (priv->access_token);
+
         G_OBJECT_CLASS(parent_class)->finalize (obj);
 }
 


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