From bb6eaaa926484a45f47382c24c1ccff6e3d5dd91 Mon Sep 17 00:00:00 2001 From: Leesoo Ahn Date: Sat, 26 Oct 2019 16:04:46 +0900 Subject: 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); } -- cgit v1.2.1