Skip to content
Snippets Groups Projects
Commit b2431132 authored by Julian Bouzas's avatar Julian Bouzas
Browse files

si-convert: fix memleak when getting the node properties

parent 24cfa053
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,7 @@ si_convert_activate_execute_step (WpSessionItem * item,
case STEP_CREATE_NODE: {
g_autoptr (WpNode) node = NULL;
g_autoptr (WpCore) core = NULL;
g_autoptr (WpProperties) node_props = NULL;
g_autoptr (WpProperties) props = NULL;
g_autoptr (GVariant) target_config = NULL;
g_autoptr (WpSpaPod) format = NULL;
......@@ -255,7 +256,8 @@ si_convert_activate_execute_step (WpSessionItem * item,
g_variant_lookup (target_config, "channels", "u", &channels);
/* Create the convert properties based on the adapter properties */
props = wp_properties_copy (wp_proxy_get_properties (WP_PROXY (node)));
node_props = wp_proxy_get_properties (WP_PROXY (node));
props = wp_properties_copy (node_props);
wp_properties_setf (props, PW_KEY_OBJECT_PATH, "%s:%s",
wp_properties_get(props, PW_KEY_OBJECT_PATH),
self->name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment