[empathy] chat_log_filter: don't leak EmpathyMessage



commit 74f2bf579605389d30cc8fab50c7718f666ca7ee
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Nov 24 11:57:59 2010 +0100

    chat_log_filter: don't leak EmpathyMessage

 libempathy-gtk/empathy-chat.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index a55d53e..dc3bb8f 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -2005,6 +2005,7 @@ chat_log_filter (TplEntry *log,
 
 	for (; pending; pending = g_list_next (pending)) {
 		if (empathy_message_equal (message, pending->data)) {
+			g_object_unref (message);
 			return FALSE;
 		}
 	}



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