From 9e9c41e83b05829519a4ed5fe1cadd288b74ac8d Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 28 Aug 2009 11:16:46 +0200 Subject: Only unref the AccountManager if it's not NULL --- libempathy/empathy-account-manager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3