]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact-manager.c
check that logger is not NULL before unrefing it
[empathy.git] / libempathy / empathy-contact-manager.c
index d0ba13054753a78a9dcd4f69f91150973bee5ead..fd7b08b14a742f3b32c455a4ee193df387ca32ba 100644 (file)
@@ -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,