[empathy: 10/26] empathy-connectivity: only unref the NM client if we're using NM
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy: 10/26] empathy-connectivity: only unref the NM client if we're using NM
- Date: Thu, 20 Aug 2009 13:45:16 +0000 (UTC)
commit d12645619d0fcf721d9edcdb8b7893e27364e17f
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Wed Aug 19 13:30:23 2009 +0100
empathy-connectivity: only unref the NM client if we're using NM
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
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 b06b57c..a1f0383 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]