modules: fix proxy ref-count
This commit is contained in:
@@ -82,7 +82,7 @@ proxy_node_created(GObject *initable, GAsyncResult *res, gpointer d)
|
|||||||
struct proxy_info *pi = d;
|
struct proxy_info *pi = d;
|
||||||
const struct module_data *data = pi->data;
|
const struct module_data *data = pi->data;
|
||||||
g_autoptr (WpCore) core = wp_module_get_core (data->module);
|
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;
|
struct endpoint_info *ei = NULL;
|
||||||
WpEndpoint *endpoint = NULL;
|
WpEndpoint *endpoint = NULL;
|
||||||
g_autoptr (GVariant) endpoint_props = NULL;
|
g_autoptr (GVariant) endpoint_props = NULL;
|
||||||
|
@@ -170,11 +170,11 @@ simple_endpoint_set_property (GObject * object, guint property_id,
|
|||||||
switch (property_id) {
|
switch (property_id) {
|
||||||
case PROP_NODE_PROXY:
|
case PROP_NODE_PROXY:
|
||||||
g_clear_object(&self->proxy_node);
|
g_clear_object(&self->proxy_node);
|
||||||
self->proxy_node = g_value_get_object(value);
|
self->proxy_node = g_value_dup_object(value);
|
||||||
break;
|
break;
|
||||||
case PROP_PORT_PROXY:
|
case PROP_PORT_PROXY:
|
||||||
g_clear_object(&self->proxy_port);
|
g_clear_object(&self->proxy_port);
|
||||||
self->proxy_port = g_value_get_object(value);
|
self->proxy_port = g_value_dup_object(value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
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;
|
struct proxy_info *pi = data;
|
||||||
const struct impl *impl = pi->impl;
|
const struct impl *impl = pi->impl;
|
||||||
WpProxyNode *proxy_node = NULL;
|
g_autoptr(WpProxyNode) proxy_node = NULL;
|
||||||
struct endpoint_info *ei = NULL;
|
struct endpoint_info *ei = NULL;
|
||||||
GVariantBuilder b;
|
GVariantBuilder b;
|
||||||
g_autoptr(GVariant) endpoint_props = NULL;
|
g_autoptr(GVariant) endpoint_props = NULL;
|
||||||
|
Reference in New Issue
Block a user