Commit f02dbf98 authored by Ronan's avatar Ronan
Browse files

fix(c-chat-message): avoid memory leak in wrapper when...

fix(c-chat-message): avoid memory leak in wrapper when linphone_chat_message_get_participants_by_imdn_state is called
parent e3cda96b
......@@ -416,9 +416,12 @@ LINPHONE_PUBLIC bool_t linphone_chat_message_is_file_transfer_in_progress (Linph
* @param[in] msg #LinphoneChatMessage object.
* @param[in] state The LinphoneChatMessageState the imdn have reached (only use LinphoneChatMessageStateDelivered,
* LinphoneChatMessageStateDeliveredToUser, LinphoneChatMessageStateDisplayed and LinphoneChatMessageStateNotDelivered)
* @return \bctbx_list{LinphoneParticipantImdnState}
* @return \bctbx_list{LinphoneParticipantImdnState} \onTheFlyList
*/
LINPHONE_PUBLIC bctbx_list_t *linphone_chat_message_get_participants_by_imdn_state (const LinphoneChatMessage *msg, LinphoneChatMessageState state);
LINPHONE_PUBLIC bctbx_list_t *linphone_chat_message_get_participants_by_imdn_state (
const LinphoneChatMessage *msg,
LinphoneChatMessageState state
);
/**
* @}
......
......@@ -271,7 +271,9 @@ bool_t linphone_chat_message_is_file_transfer_in_progress (LinphoneChatMessage *
}
bctbx_list_t *linphone_chat_message_get_participants_by_imdn_state (const LinphoneChatMessage *msg, LinphoneChatMessageState state) {
return L_GET_RESOLVED_C_LIST_FROM_CPP_LIST(L_GET_CPP_PTR_FROM_C_OBJECT(msg)->getParticipantsByImdnState(LinphonePrivate::ChatMessage::State(state)));
return L_GET_RESOLVED_C_LIST_FROM_CPP_LIST(
L_GET_CPP_PTR_FROM_C_OBJECT(msg)->getParticipantsByImdnState(LinphonePrivate::ChatMessage::State(state))
);
}
bool_t linphone_chat_message_download_content (LinphoneChatMessage *msg, LinphoneContent *c_content) {
......
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