summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-02-05 17:49:38 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-02-05 17:49:38 -0500
commit2033c12147f8de9f3d3ac98b631004fca21f3b5c (patch)
tree206825d3a5f5b0addaccecf74857b1f10dee2dec
parent19528de30574e779979dbf4e6b246d22b96fc01b (diff)
downloadgupnp-igd-2033c12147f8de9f3d3ac98b631004fca21f3b5c.tar.gz
Make sure the GUPnPContextManager callback is not called after the object has
disappeared
-rw-r--r--libgupnp-igd/gupnp-simple-igd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgupnp-igd/gupnp-simple-igd.c b/libgupnp-igd/gupnp-simple-igd.c
index 26d958e..6d0ce57 100644
--- a/libgupnp-igd/gupnp-simple-igd.c
+++ b/libgupnp-igd/gupnp-simple-igd.c
@@ -585,8 +585,8 @@ gupnp_simple_igd_constructed (GObject *object)
self->priv->gupnp_context_manager = gupnp_context_manager_create (0);
- g_signal_connect (self->priv->gupnp_context_manager, "context-available",
- G_CALLBACK (_context_available), self);
+ g_signal_connect_object (self->priv->gupnp_context_manager,
+ "context-available", G_CALLBACK (_context_available), self, 0);
if (G_OBJECT_CLASS (gupnp_simple_igd_parent_class)->constructed)
G_OBJECT_CLASS (gupnp_simple_igd_parent_class)->constructed (object);