Commit 54ed6798 authored by Ronan's avatar Ronan

fix(ChatMessage): avoid heap corruption, use delete instead of free

parent c69320a1
......@@ -53,9 +53,9 @@ using namespace std;
ChatMessagePrivate::ChatMessagePrivate () {}
ChatMessagePrivate::~ChatMessagePrivate () {
for (Content *content : contents) {
free(content);
}
for (Content *content : contents)
delete content;
if (salOp)
salOp->release();
}
......
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