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:
Barnabás Pőcze 2026-03-20 20:30:44 +01:00
parent 1cfeab9a86
commit c2b96ebb39

View file

@ -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);