pipewire-object: fix memory leaks when getting properties

This commit is contained in:
Julian Bouzas
2021-06-03 11:09:03 -04:00
parent 1f65012abf
commit cde38daabf
3 changed files with 3 additions and 3 deletions

View File

@@ -475,7 +475,7 @@ wp_pw_object_mixin_get_property (GObject * object, guint property_id,
wp_pipewire_object_get_native_info (WP_PIPEWIRE_OBJECT (object))); wp_pipewire_object_get_native_info (WP_PIPEWIRE_OBJECT (object)));
break; break;
case WP_PW_OBJECT_MIXIN_PROP_PROPERTIES: case WP_PW_OBJECT_MIXIN_PROP_PROPERTIES:
g_value_set_boxed (value, g_value_take_boxed (value,
wp_pipewire_object_get_properties (WP_PIPEWIRE_OBJECT (object))); wp_pipewire_object_get_properties (WP_PIPEWIRE_OBJECT (object)));
break; break;
case WP_PW_OBJECT_MIXIN_PROP_PARAM_INFO: case WP_PW_OBJECT_MIXIN_PROP_PARAM_INFO:

View File

@@ -84,7 +84,7 @@ si_audio_adapter_configure (WpSessionItem * item, WpProperties *p)
WpSiAudioAdapter *self = WP_SI_AUDIO_ADAPTER (item); WpSiAudioAdapter *self = WP_SI_AUDIO_ADAPTER (item);
g_autoptr (WpProperties) si_props = wp_properties_ensure_unique_owner (p); g_autoptr (WpProperties) si_props = wp_properties_ensure_unique_owner (p);
WpNode *node = NULL; WpNode *node = NULL;
WpProperties *node_props = NULL; g_autoptr (WpProperties) node_props = NULL;
const gchar *str; const gchar *str;
/* reset previous config */ /* reset previous config */

View File

@@ -58,7 +58,7 @@ si_node_configure (WpSessionItem * item, WpProperties *p)
WpSiNode *self = WP_SI_NODE (item); WpSiNode *self = WP_SI_NODE (item);
g_autoptr (WpProperties) si_props = wp_properties_ensure_unique_owner (p); g_autoptr (WpProperties) si_props = wp_properties_ensure_unique_owner (p);
WpNode *node = NULL; WpNode *node = NULL;
WpProperties *node_props = NULL; g_autoptr (WpProperties) node_props = NULL;
const gchar *str; const gchar *str;
/* reset previous config */ /* reset previous config */