Commit 7d28027f authored by Julian Bouzas's avatar Julian Bouzas
Browse files

wplua: fix memleak when converting GVariant to Lua

parent 8ba6439d
Pipeline #333810 passed with stages
in 1 minute and 37 seconds
......@@ -122,7 +122,8 @@ wplua_gvariant_to_lua (lua_State *L, GVariant *variant)
lua_pushstring (L, g_variant_get_string (variant, NULL));
else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_VARIANT)) {
wplua_gvariant_to_lua (L, g_variant_get_variant (variant));
g_autoptr (GVariant) v = g_variant_get_variant (variant);
wplua_gvariant_to_lua (L, v);
else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_DICTIONARY)) {
gsize n_children, i;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment