[empathy: 79/80] Don't unref NULL pointers
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 79/80] Don't unref NULL pointers
- Date: Fri, 10 Jun 2011 08:45:47 +0000 (UTC)
commit 3fe402f9da25077cf075c55263c78d613c62687a
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Thu Jun 9 16:52:05 2011 +0100
Don't unref NULL pointers
log_window_got_messages_for_date_cb() can return NULL for
unknown event types, so don't unref the result in those
cases.
libempathy-gtk/empathy-log-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 435c997..4ff6588 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -2480,7 +2480,7 @@ log_window_got_messages_for_date_cb (GObject *manager,
{
EmpathyMessage *msg = empathy_message_from_tpl_log_event (event);
log_window_append_message (event, msg);
- g_object_unref (msg);
+ tp_clear_object (&msg);
}
g_object_unref (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]