Fix memleak in empathy_tp_chat_acknowledge_messages. Unref message after it has
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 19 Apr 2009 15:35:32 +0000 (17:35 +0200)
committerLars-Peter Clausen <lars@metafoo.de>
Tue, 21 Apr 2009 08:42:14 +0000 (10:42 +0200)
been removed from the message queue.

libempathy/empathy-tp-chat.c

index ef0ac6c2d8d83b779c2fb56fb498722319c621bc..048f5b275fc62a8016767c63f7203d0bdd26e853 100644 (file)
@@ -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)