diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-02-24 18:46:00 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-02-25 01:09:24 +0800 |
commit | 69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a (patch) | |
tree | 940bb783da7cb0fde26c58eea7fa49cb1384a2a8 /libempathy-gtk/empathy-log-window.c | |
parent | 3370389a56ebd8fe1076721f55519ea1ad34c96a (diff) | |
download | gsoc2013-empathy-69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a.tar gsoc2013-empathy-69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a.tar.gz gsoc2013-empathy-69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a.tar.bz2 gsoc2013-empathy-69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a.tar.lz gsoc2013-empathy-69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a.tar.xz gsoc2013-empathy-69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a.tar.zst gsoc2013-empathy-69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a.zip |
Log window: free the entities together with the list
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-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, |