lua: fix refcounting of metadata iterator

wplua_push* takes a full ref
This commit is contained in:
George Kiagiadakis
2021-06-08 13:37:49 +03:00
parent 7d28027f9b
commit 77454243bc

View File

@@ -729,7 +729,7 @@ metadata_iterate (lua_State *L)
{
WpMetadata *metadata = wplua_checkobject (L, 1, WP_TYPE_METADATA);
lua_Integer subject = luaL_checkinteger (L, 2);
g_autoptr (WpIterator) it = wp_metadata_new_iterator (metadata, subject);
WpIterator *it = wp_metadata_new_iterator (metadata, subject);
return push_metadata_wpiterator (L, it);
}