[empathy] Log window: free the entities together with the list



commit 69c3a29e4d9af4b68c3ccb2a6d160cbf2fd9171a
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 4c979cc..6085996 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]