aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account-manager.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-08-28 17:16:46 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-08-28 18:31:45 +0800
commit9e9c41e83b05829519a4ed5fe1cadd288b74ac8d (patch)
treebd8ae033ca0a16545113551cf7e4da06bc1741b3 /libempathy/empathy-account-manager.c
parent29ce35b69e1727a0f5f6bd1a1fa2c72da5f7a56a (diff)
downloadgsoc2013-empathy-9e9c41e83b05829519a4ed5fe1cadd288b74ac8d.tar
gsoc2013-empathy-9e9c41e83b05829519a4ed5fe1cadd288b74ac8d.tar.gz
gsoc2013-empathy-9e9c41e83b05829519a4ed5fe1cadd288b74ac8d.tar.bz2
gsoc2013-empathy-9e9c41e83b05829519a4ed5fe1cadd288b74ac8d.tar.lz
gsoc2013-empathy-9e9c41e83b05829519a4ed5fe1cadd288b74ac8d.tar.xz
gsoc2013-empathy-9e9c41e83b05829519a4ed5fe1cadd288b74ac8d.tar.zst
gsoc2013-empathy-9e9c41e83b05829519a4ed5fe1cadd288b74ac8d.zip
Only unref the AccountManager if it's not NULL
Diffstat (limited to 'libempathy/empathy-account-manager.c')
-rw-r--r--libempathy/empathy-account-manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index 5548a90e6..f7cb09a87 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;
}