[empathy] check that logger is not NULL before unrefing it
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] check that logger is not NULL before unrefing it
- Date: Mon, 15 Mar 2010 08:29:50 +0000 (UTC)
commit 27591216de0bdbf8cfecd562414faa34138a1a52
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Mar 8 16:39:29 2010 +0100
check that logger is not NULL before unrefing it
libempathy/empathy-contact-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index d0ba130..fd7b08b 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]