[empathy/gnome-2-34] Log window: free the entities together with the list
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] Log window: free the entities together with the list
- Date: Thu, 24 Feb 2011 15:52:31 +0000 (UTC)
commit 6153b748bc55d0735e7294a0dcfe87905b579f11
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Thu Feb 24 10:46:00 2011 +0000
Log window: free the entities together with the list
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 dc44c9b..9e71571 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]