mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-04 16:40:28 +01:00
wplua: object: unset GValues used when calling action signals
This commit is contained in:
parent
7b4829f808
commit
997e2c7539
1 changed files with 9 additions and 3 deletions
|
|
@ -50,10 +50,16 @@ _wplua_gobject_call (lua_State *L)
|
|||
|
||||
g_signal_emitv (vals, sig_id, detail, &ret);
|
||||
|
||||
for (guint i = 0; i < n_params + 1; i++) {
|
||||
g_value_unset (&vals[i]);
|
||||
}
|
||||
|
||||
int n_ret = 0;
|
||||
if (query.return_type != G_TYPE_NONE)
|
||||
return wplua_gvalue_to_lua (L, &ret);
|
||||
else
|
||||
return 0;
|
||||
n_ret = wplua_gvalue_to_lua (L, &ret);
|
||||
|
||||
g_value_unset (&ret);
|
||||
return n_ret;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue