Skip to content
Snippets Groups Projects
Commit 994e7d19 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

Merge branch 'refcount-fix' into 'master'

modules: fix proxy ref-count

See merge request gkiagia/wireplumber!9
parents e603ed42 3feddf55
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ proxy_node_created(GObject *initable, GAsyncResult *res, gpointer d)
struct proxy_info *pi = d;
const struct module_data *data = pi->data;
g_autoptr (WpCore) core = wp_module_get_core (data->module);
WpProxyNode *proxy_node = NULL;
g_autoptr (WpProxyNode) proxy_node = NULL;
struct endpoint_info *ei = NULL;
WpEndpoint *endpoint = NULL;
g_autoptr (GVariant) endpoint_props = NULL;
......
......@@ -170,11 +170,11 @@ simple_endpoint_set_property (GObject * object, guint property_id,
switch (property_id) {
case PROP_NODE_PROXY:
g_clear_object(&self->proxy_node);
self->proxy_node = g_value_get_object(value);
self->proxy_node = g_value_dup_object(value);
break;
case PROP_PORT_PROXY:
g_clear_object(&self->proxy_port);
self->proxy_port = g_value_get_object(value);
self->proxy_port = g_value_dup_object(value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
......
......@@ -75,7 +75,7 @@ proxy_node_created(GObject *initable, GAsyncResult *res, gpointer data)
{
struct proxy_info *pi = data;
const struct impl *impl = pi->impl;
WpProxyNode *proxy_node = NULL;
g_autoptr(WpProxyNode) proxy_node = NULL;
struct endpoint_info *ei = NULL;
GVariantBuilder b;
g_autoptr(GVariant) endpoint_props = NULL;
......
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