Commit d62d5e00 authored by Julian Bouzas's avatar Julian Bouzas
Browse files

wplua: fix memleak when converting GVariant to Lua

parent 7dc74665
Pipeline #333661 passed with stages
in 1 minute and 54 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