diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index 4c979ccd7..60859968e 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -841,10 +841,8 @@ log_manager_got_entities_cb (GObject *manager, if (tpl_entity_get_entity_type (entity) == TPL_ENTITY_ROOM) { } else { } - - g_object_unref (entity); } - g_list_free (entities); + g_list_free_full (entities, g_object_unref); /* Unblock signals */ g_signal_handlers_unblock_by_func (selection, |