From d12645619d0fcf721d9edcdb8b7893e27364e17f Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Wed, 19 Aug 2009 13:30:23 +0100 Subject: empathy-connectivity: only unref the NM client if we're using NM Signed-off-by: Jonny Lamb --- libempathy/empathy-connectivity.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libempathy/empathy-connectivity.c b/libempathy/empathy-connectivity.c index b06b57cb8..a1f0383c7 100644 --- a/libempathy/empathy-connectivity.c +++ b/libempathy/empathy-connectivity.c @@ -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); } -- cgit v1.2.3