[farsight2/master] Add maincontext member

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:24:32 PST 2008


---
 fs-upnp-simple-igd.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/fs-upnp-simple-igd.c b/fs-upnp-simple-igd.c
index 3a76f1f..0d60a27 100644
--- a/fs-upnp-simple-igd.c
+++ b/fs-upnp-simple-igd.c
@@ -28,7 +28,7 @@
 
 struct _FsUpnpSimpleIgdPrivate
 {
-  gpointer something;
+  GMainContext *context;
 };
 
 /* signals */
@@ -98,6 +98,10 @@ fs_upnp_simple_igd_dispose (GObject *object)
 static void
 fs_upnp_simple_igd_finalize (GObject *object)
 {
+  FsUpnpSimpleIgd *self = FS_UPNP_SIMPLE_IGD_CAST (object);
+
+  g_main_context_unref (self->priv->context);
+
   G_OBJECT_CLASS (fs_upnp_simple_igd_parent_class)->finalize (object);
 }
 
-- 
1.5.6.5




More information about the farsight-commits mailing list