aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 23:52:05 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-10 16:30:14 +0800
commit3fe402f9da25077cf075c55263c78d613c62687a (patch)
treeb0080931d613217ac06b19f7b99b19f162ab35be
parentd49a19564bc1404c8536da85f97e22ae80e614e7 (diff)
downloadgsoc2013-empathy-3fe402f9da25077cf075c55263c78d613c62687a.tar
gsoc2013-empathy-3fe402f9da25077cf075c55263c78d613c62687a.tar.gz
gsoc2013-empathy-3fe402f9da25077cf075c55263c78d613c62687a.tar.bz2
gsoc2013-empathy-3fe402f9da25077cf075c55263c78d613c62687a.tar.lz
gsoc2013-empathy-3fe402f9da25077cf075c55263c78d613c62687a.tar.xz
gsoc2013-empathy-3fe402f9da25077cf075c55263c78d613c62687a.tar.zst
gsoc2013-empathy-3fe402f9da25077cf075c55263c78d613c62687a.zip
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.
-rw-r--r--libempathy-gtk/empathy-log-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 435c99760..4ff658834 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);