[libgfbgraph/fix-mem-leaks] user: Fix memory leak



commit 7512cc443b17b3c7bfaed595804011b2353b045c
Author: Leesoo Ahn <yisooan fedoraproject org>
Date:   Wed Oct 9 11:21:15 2019 +0900

    user: Fix memory leak
    
    RestProxyCall instance must be freed after it is done.
    
    https://developer.gnome.org/rest/unstable/RestProxy.html#rest-proxy-new-call
    
    https://gitlab.gnome.org/GNOME/libgfbgraph/issues/3

 gfbgraph/gfbgraph-user.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gfbgraph/gfbgraph-user.c b/gfbgraph/gfbgraph-user.c
index 34410b3..53c5b94 100644
--- a/gfbgraph/gfbgraph-user.c
+++ b/gfbgraph/gfbgraph-user.c
@@ -281,6 +281,7 @@ gfbgraph_user_get_me (GFBGraphAuthorizer *authorizer, GError **error)
 
                 g_object_unref (parser);
         }
+        g_object_unref (rest_call);
 
         return me;
 }


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