mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 06:58:08 +02:00
m-lua-scripting: fix object refcounting
7908b8d7be2a2992c57cd549054eda7ce46e4b44 ("m-lua-scripting: allow
converting GValue holding NULL objects to Lua") accidentally added a second
refcount. As a result, the objects are never freeded.
Remove the second refcount to fix this.
This commit is contained in:
parent
06e9285b25
commit
13b85bd4a2
1 changed files with 1 additions and 1 deletions
|
|
@ -317,7 +317,7 @@ wplua_gvalue_to_lua (lua_State *L, const GValue *v)
|
|||
case G_TYPE_INTERFACE: {
|
||||
GObject *object = g_value_dup_object (v);
|
||||
if (object)
|
||||
wplua_pushobject (L, g_value_dup_object (v));
|
||||
wplua_pushobject (L, object);
|
||||
else
|
||||
lua_pushnil (L);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue