[empathy] Only unref the AccountManager if it's not NULL
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Only unref the AccountManager if it's not NULL
- Date: Fri, 28 Aug 2009 10:32:05 +0000 (UTC)
commit 9e9c41e83b05829519a4ed5fe1cadd288b74ac8d
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date: Fri Aug 28 11:16:46 2009 +0200
Only unref the AccountManager if it's not NULL
libempathy/empathy-account-manager.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index 5548a90..f7cb09a 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -507,7 +507,9 @@ account_manager_name_owner_cb (TpDBusDaemon *proxy,
/* MC5 quit or crashed for some reason, let's start it again */
account_manager_start_mc5 (priv->dbus);
- g_object_unref (priv->tp_manager);
+ if (priv->tp_manager != NULL)
+ g_object_unref (priv->tp_manager);
+
priv->tp_manager = NULL;
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]