[farsight2/master] Default to the default context

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


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

diff --git a/fs-upnp-simple-igd.c b/fs-upnp-simple-igd.c
index b8e11c5..5ba2995 100644
--- a/fs-upnp-simple-igd.c
+++ b/fs-upnp-simple-igd.c
@@ -272,6 +272,9 @@ fs_upnp_simple_igd_new (GMainContext *main_context)
 {
   FsUpnpSimpleIgd *self = g_object_new (FS_TYPE_UPNP_SIMPLE_IGD, NULL);
 
+  if (!main_context)
+    main_context = g_main_context_default ();
+
   self->priv->main_context = g_main_context_ref (main_context);
 
   fs_upnp_simple_igd_build (self, NULL);
-- 
1.5.6.5




More information about the farsight-commits mailing list