mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-10 05:20:15 +01:00
m-lua-scripting: increase refcount of export_core before pushing into the Lua state
This commit is contained in:
parent
1e8ab76d70
commit
c8be8d91be
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ wp_lua_scripting_plugin_enable (WpPlugin * plugin, WpTransition * transition)
|
|||
export_core = g_object_get_data (G_OBJECT (core), "wireplumber.export-core");
|
||||
if (export_core) {
|
||||
lua_pushliteral (self->L, "wireplumber_export_core");
|
||||
wplua_pushobject (self->L, export_core);
|
||||
wplua_pushobject (self->L, g_object_ref (export_core));
|
||||
lua_settable (self->L, LUA_REGISTRYINDEX);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue