pipewire-object: fix memory leaks when getting properties
This commit is contained in:
@@ -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)));
|
||||
break;
|
||||
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)));
|
||||
break;
|
||||
case WP_PW_OBJECT_MIXIN_PROP_PARAM_INFO:
|
||||
|
@@ -84,7 +84,7 @@ si_audio_adapter_configure (WpSessionItem * item, WpProperties *p)
|
||||
WpSiAudioAdapter *self = WP_SI_AUDIO_ADAPTER (item);
|
||||
g_autoptr (WpProperties) si_props = wp_properties_ensure_unique_owner (p);
|
||||
WpNode *node = NULL;
|
||||
WpProperties *node_props = NULL;
|
||||
g_autoptr (WpProperties) node_props = NULL;
|
||||
const gchar *str;
|
||||
|
||||
/* reset previous config */
|
||||
|
@@ -58,7 +58,7 @@ si_node_configure (WpSessionItem * item, WpProperties *p)
|
||||
WpSiNode *self = WP_SI_NODE (item);
|
||||
g_autoptr (WpProperties) si_props = wp_properties_ensure_unique_owner (p);
|
||||
WpNode *node = NULL;
|
||||
WpProperties *node_props = NULL;
|
||||
g_autoptr (WpProperties) node_props = NULL;
|
||||
const gchar *str;
|
||||
|
||||
/* reset previous config */
|
||||
|
Reference in New Issue
Block a user