aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-02-24 18:46:00 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-02-24 23:39:58 +0800
commit6153b748bc55d0735e7294a0dcfe87905b579f11 (patch)
treec651ecc1d96ba0c20107a8744bfe0b0f39d777fe
parent7d2172c7227af850e6fa48b31d711b6dd0d14dba (diff)
downloadgsoc2013-empathy-6153b748bc55d0735e7294a0dcfe87905b579f11.tar
gsoc2013-empathy-6153b748bc55d0735e7294a0dcfe87905b579f11.tar.gz
gsoc2013-empathy-6153b748bc55d0735e7294a0dcfe87905b579f11.tar.bz2
gsoc2013-empathy-6153b748bc55d0735e7294a0dcfe87905b579f11.tar.lz
gsoc2013-empathy-6153b748bc55d0735e7294a0dcfe87905b579f11.tar.xz
gsoc2013-empathy-6153b748bc55d0735e7294a0dcfe87905b579f11.tar.zst
gsoc2013-empathy-6153b748bc55d0735e7294a0dcfe87905b579f11.zip
Log window: free the entities together with the list
-rw-r--r--libempathy-gtk/empathy-log-window.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index dc44c9b25..9e715711a 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -830,10 +830,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,