Commit 594d71d7 authored by Ronan's avatar Ronan

fix(FileTransferChatMessageModifier): use delete instead of free on content

parent f369a7c8
......@@ -772,7 +772,7 @@ void FileTransferChatMessageModifier::onRecvEnd (belle_sip_user_body_handler_t *
FileTransferContent *fileTransferContent = (FileTransferContent*)content;
if (fileTransferContent->getFileContent() == fileContent) {
chatMessage->removeContent(*content);
free(fileTransferContent);
delete fileTransferContent;
break;
}
}
......
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