From 8153806d34d5411b54ac579a6016d1aa62e3a7c7 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 1 Feb 2018 13:39:13 +0100 Subject: [PATCH] Fix some memory leaks in message tester. --- tester/message_tester.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tester/message_tester.c b/tester/message_tester.c index 508fe51bb..018ae5e5f 100644 --- a/tester/message_tester.c +++ b/tester/message_tester.c @@ -1573,6 +1573,7 @@ static void text_status_after_destroying_chat_room(void) { linphone_core_delete_chat_room(marie->lc, chatroom); //since message is orphan, we do not expect to be notified of state change BC_ASSERT_FALSE(wait_for_until(marie->lc, NULL, &marie->stat.number_of_LinphoneMessageNotDelivered, 1, 1000)); + linphone_chat_message_unref(msg); linphone_core_manager_destroy(marie); } @@ -2077,6 +2078,7 @@ void chat_message_custom_headers(void) { BC_ASSERT_STRING_EQUAL(linphone_chat_message_get_text(marie->stat.last_received_chat_message), "Lorem Ipsum"); } + linphone_chat_message_unref(msg); linphone_core_manager_destroy(marie); linphone_core_manager_destroy(pauline); }