summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeesoo Ahn <yisooan@fedoraproject.org>2019-10-26 16:04:46 +0900
committerLeesoo Ahn <yisooan@fedoraproject.org>2019-10-26 16:04:46 +0900
commitbb6eaaa926484a45f47382c24c1ccff6e3d5dd91 (patch)
tree93f3f10bb405582b92e032bec1f52e86b514e1df
parent8ba89fdd445147cf198e98790e914e0c578a5b8d (diff)
downloadlibgfbgraph-bb6eaaa926484a45f47382c24c1ccff6e3d5dd91.tar.gz
simple-authorizer: Fix memory leak
Private property must be freed after it is done. https://gitlab.gnome.org/GNOME/libgfbgraph/issues/3
-rw-r--r--gfbgraph/gfbgraph-simple-authorizer.c6
1 files changed, 6 insertions, 0 deletions
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);
}