diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-08-19 20:30:23 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-08-19 20:30:23 +0800 |
commit | d12645619d0fcf721d9edcdb8b7893e27364e17f (patch) | |
tree | 498f0928c05076b52deb7cff8b240dfa50977f6e /libempathy | |
parent | d183b3dbbdd4bf1aea48eff08ae33ddd27f23e57 (diff) | |
download | gsoc2013-empathy-d12645619d0fcf721d9edcdb8b7893e27364e17f.tar gsoc2013-empathy-d12645619d0fcf721d9edcdb8b7893e27364e17f.tar.gz gsoc2013-empathy-d12645619d0fcf721d9edcdb8b7893e27364e17f.tar.bz2 gsoc2013-empathy-d12645619d0fcf721d9edcdb8b7893e27364e17f.tar.lz gsoc2013-empathy-d12645619d0fcf721d9edcdb8b7893e27364e17f.tar.xz gsoc2013-empathy-d12645619d0fcf721d9edcdb8b7893e27364e17f.tar.zst gsoc2013-empathy-d12645619d0fcf721d9edcdb8b7893e27364e17f.zip |
empathy-connectivity: only unref the NM client if we're using NM
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-connectivity.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |