mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-04-21 04:20:39 +02:00
m-lua-scripting: impl_module_new(): fix property list memory leak
The `properties` argument of `wp_impl_module_load()` is marked
"transfer none", thus the caller's reference remains valid and
must be disposed of.
Fixes: ef29018c55 ("m-lua-scripting: Add WpImplModule bindings")
This commit is contained in:
parent
1cfeab9a86
commit
c2b96ebb39
1 changed files with 1 additions and 1 deletions
|
|
@ -1691,7 +1691,7 @@ static int
|
|||
impl_module_new (lua_State *L)
|
||||
{
|
||||
const char *name, *args = NULL;
|
||||
WpProperties *properties = NULL;
|
||||
g_autoptr (WpProperties) properties = NULL;
|
||||
|
||||
name = luaL_checkstring (L, 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue