Commit d59a4d1e authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed some leaks in chat message tester

parent cbcc62a0
......@@ -534,11 +534,16 @@ void transfer_message_base2(LinphoneCoreManager* marie, LinphoneCoreManager* pau
compare_files(send_filepath, receive_filepath);
}
}
if (!download_from_history) {
linphone_chat_message_unref(recv_msg);
}
}
BC_ASSERT_EQUAL(pauline->stat.number_of_LinphoneMessageInProgress,2, int, "%d"); //sent twice because of file transfer
BC_ASSERT_EQUAL(pauline->stat.number_of_LinphoneMessageDelivered,1, int, "%d");
}
end:
linphone_chat_message_unref(msg);
bctbx_list_free_with_data(msg_list, (bctbx_list_free_func)linphone_chat_message_unref);
remove(receive_filepath);
bc_free(send_filepath);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment