Skip to content
Snippets Groups Projects
Commit 997e2c75 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

wplua: object: unset GValues used when calling action signals

parent 7b4829f8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment