m-lua-scripting: unref value pod after adding it to control

This commit is contained in:
Julian Bouzas
2021-06-30 11:50:07 -04:00
parent 888d6e5033
commit dc6fa6cbfe

View File

@@ -787,6 +787,7 @@ spa_pod_sequence_new (lua_State *L)
if (type_name && value) {
wp_spa_pod_builder_add_control (builder, offset, type_name);
wp_spa_pod_builder_add_pod (builder, value);
wp_spa_pod_unref (value);
}
lua_pop(L, 1);