From: Guillaume Desmottes Date: Mon, 8 Mar 2010 15:39:29 +0000 (+0100) Subject: check that logger is not NULL before unrefing it X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=27591216de0bdbf8cfecd562414faa34138a1a52 check that logger is not NULL before unrefing it --- diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c index d0ba1305..fd7b08b1 100644 --- a/libempathy/empathy-contact-manager.c +++ b/libempathy/empathy-contact-manager.c @@ -375,7 +375,8 @@ contact_manager_finalize (GObject *object) tp_proxy_signal_connection_disconnect (priv->favourite_contacts_changed_signal); - g_object_unref (priv->logger); + if (priv->logger != NULL) + g_object_unref (priv->logger); g_hash_table_foreach (priv->lists, contact_manager_disconnect_foreach,