Commit b34d5bd9 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix double free

parent 59258bb2
...@@ -77,7 +77,6 @@ void file_transfer_received(LinphoneCore *lc, LinphoneChatMessage *message, cons ...@@ -77,7 +77,6 @@ void file_transfer_received(LinphoneCore *lc, LinphoneChatMessage *message, cons
if (size==0) { /* tranfer complete */ if (size==0) { /* tranfer complete */
stats* counters = get_stats(lc); stats* counters = get_stats(lc);
linphone_chat_room_destroy(linphone_chat_message_get_chat_room(message)); linphone_chat_room_destroy(linphone_chat_message_get_chat_room(message));
linphone_chat_message_destroy(message);
counters->number_of_LinphoneMessageExtBodyReceived++; counters->number_of_LinphoneMessageExtBodyReceived++;
fclose(file); fclose(file);
} else { /* store content on a file*/ } else { /* store content on a file*/
......
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