[grilo-plugins] lua-factory: Fix the memory leak in GOA-related functions



commit e88d6e5561293e2e62d0b63b63038d2de9fc096d
Author: George Sedov <radist morse gmail com>
Date:   Wed Aug 5 04:01:16 2015 +0300

    lua-factory: Fix the memory leak in GOA-related functions
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753141

 src/lua-factory/grl-lua-library.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index 191b43e..1fafbf0 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -1332,7 +1332,7 @@ grl_l_goa_consumer_key (lua_State *L)
     object = grl_lua_library_load_goa_data (L);
     if (object != NULL) {
       /* FIXME handle other types of object? */
-      oauth2 = goa_object_get_oauth2_based (object);
+      oauth2 = goa_object_peek_oauth2_based (object);
     }
     if (oauth2 == NULL) {
       GRL_WARNING ("Source is broken as it tries to access gnome-online-accounts "
@@ -1373,7 +1373,7 @@ grl_l_goa_access_token (lua_State *L)
 
     if (object != NULL) {
       /* FIXME handle other types of object? */
-      oauth2 = goa_object_get_oauth2_based (object);
+      oauth2 = goa_object_peek_oauth2_based (object);
     }
     if (oauth2 == NULL) {
       GRL_WARNING ("Source is broken as it tries to access gnome-online-accounts "


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