diff options
author | George Sedov <radist.morse@gmail.com> | 2015-08-05 04:01:16 +0300 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2015-09-06 16:13:54 +0200 |
commit | 8ff0e36b8be8dd08760fe278931ebe8a8c999294 (patch) | |
tree | 8ab2daf90ff13bf54de42fda4b5cbdc9d0ee2d28 /src | |
parent | 605e47187d2bcb78ccc1d33f38441307602280e0 (diff) | |
download | grilo-plugins-8ff0e36b8be8dd08760fe278931ebe8a8c999294.tar.gz |
lua-factory: Fix the memory leak in GOA-related functions
https://bugzilla.gnome.org/show_bug.cgi?id=753141
Diffstat (limited to 'src')
-rw-r--r-- | 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 " |