mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 04:10:03 +01:00
script-tester: wp_script_tester_create_stream(): fix property list leak
The `WpProperties` object containing the properties of the stream was not released after it was no longer needed. Fix that.
This commit is contained in:
parent
83e992b238
commit
05c3f31362
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ wp_script_tester_create_stream (WpScriptTester *self, const gchar *stream_type,
|
|||
WpProperties *stream_props)
|
||||
{
|
||||
ScriptRunnerFixture *f = self->test_fixture;
|
||||
WpProperties *props = NULL;
|
||||
g_autoptr (WpProperties) props = NULL;
|
||||
const struct spa_pod *params [1];
|
||||
uint8_t buffer [1024];
|
||||
struct spa_pod_builder b = SPA_POD_BUILDER_INIT (buffer, sizeof (buffer));
|
||||
|
|
@ -96,7 +96,7 @@ wp_script_tester_create_stream (WpScriptTester *self, const gchar *stream_type,
|
|||
|
||||
self->stream = pw_stream_new (
|
||||
wp_core_get_pw_core (f->base.client_core),
|
||||
"stream-node", wp_properties_to_pw_properties (props));
|
||||
"stream-node", wp_properties_unref_and_take_pw_properties (g_steal_pointer (&props)));
|
||||
|
||||
params [0] = spa_format_audio_raw_build (&b, SPA_PARAM_EnumFormat,
|
||||
&SPA_AUDIO_INFO_RAW_INIT (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue