]> sjero.net Git - linphone/blobdiff - coreapi/chat.c
add number of unread messages
[linphone] / coreapi / chat.c
index 69893217d2e291c5bb42b38df195ab888002fea1..c12bb33988a984f29c5d3b8491c24cac257aafb3 100644 (file)
@@ -436,6 +436,7 @@ void linphone_chat_message_destroy(LinphoneChatMessage* msg) {
        if (msg->message) ms_free(msg->message);
        if (msg->external_body_url) ms_free(msg->external_body_url);
        if (msg->from) linphone_address_destroy(msg->from);
+       if (msg->to) linphone_address_destroy(msg->to);
        if (msg->custom_headers) sal_custom_header_free(msg->custom_headers);
        ms_free(msg);
 }