[empathy/gnome-2-26] Fix memleak in empathy_tp_chat_acknowledge_messages. Unref message after it has



commit 0cc29fb4b767b568cc1f06f1d0a828fdd2886e99
Author: Lars-Peter Clausen <lars metafoo de>
Date:   Sun Apr 19 17:35:32 2009 +0200

    Fix memleak in empathy_tp_chat_acknowledge_messages. Unref message after it has
    been removed from the message queue.
---
 libempathy/empathy-tp-chat.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index ef0ac6c..048f5b2 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1393,6 +1393,7 @@ empathy_tp_chat_acknowledge_messages (EmpathyTpChat *chat,
 			guint id = empathy_message_get_id (message);
 			g_array_append_val (message_ids, id);
 		}
+		g_object_unref (message);
 	}
 
 	if (message_ids->len > 0)



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