mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-04 05:00:26 +01:00
lua: fix refcounting of metadata iterator
wplua_push* takes a full ref
This commit is contained in:
parent
7d28027f9b
commit
77454243bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue