]> git.0d.be Git - empathy.git/commitdiff
empathy-connectivity: only unref the NM client if we're using NM
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Wed, 19 Aug 2009 12:30:23 +0000 (13:30 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Wed, 19 Aug 2009 12:30:23 +0000 (13:30 +0100)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
libempathy/empathy-connectivity.c

index b06b57cb8992415a662cdda9df1d1cb9981f528c..a1f0383c7a4be084f707ac8853d399cd02fd5f8d 100644 (file)
@@ -118,6 +118,7 @@ empathy_connectivity_init (EmpathyConnectivity *connectivity)
 static void
 connectivity_finalize (GObject *object)
 {
+#ifdef HAVE_NM
   EmpathyConnectivity *manager = EMPATHY_CONNECTIVITY (object);
   EmpathyConnectivityPriv *priv = GET_PRIV (manager);
 
@@ -126,6 +127,7 @@ connectivity_finalize (GObject *object)
       g_object_unref (priv->nm_client);
       priv->nm_client = NULL;
     }
+#endif
 
   G_OBJECT_CLASS (empathy_connectivity_parent_class)->finalize (object);
 }