mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix locale buffer not reset when needed
This commit is contained in:
parent
a6bda579fa
commit
e5975e6e18
1 changed files with 4 additions and 0 deletions
|
|
@ -1628,6 +1628,10 @@ const char *linphone_chat_message_get_text(LinphoneChatMessage *msg) {
|
|||
int linphone_chat_message_set_text(LinphoneChatMessage *msg, const char* text) {
|
||||
if (msg->message)
|
||||
ms_free(msg->message);
|
||||
if (msg->locale_message) {
|
||||
ms_free(msg->locale_message);
|
||||
msg->locale_message = NULL;
|
||||
}
|
||||
if (text)
|
||||
msg->message = ms_strdup(text);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue