mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
fix(ChatMessage): avoid heap corruption, use delete instead of free
This commit is contained in:
parent
c69320a15d
commit
54ed679844
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue