[gupnp-igd] Make sure the GUPnPContextManager callback is not called after the object has disappeared



commit 2033c12147f8de9f3d3ac98b631004fca21f3b5c
Author: Olivier Crête <olivier crete collabora com>
Date:   Wed Feb 5 17:49:38 2014 -0500

    Make sure the GUPnPContextManager callback is not called after the object has
    disappeared

 libgupnp-igd/gupnp-simple-igd.c |    4 ++--
 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]