mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 12:08:11 +00:00
Free the contents upon ChatMessage destruction
This commit is contained in:
parent
88c9e1e593
commit
fd1084b875
1 changed files with 3 additions and 0 deletions
|
|
@ -53,6 +53,9 @@ using namespace std;
|
|||
ChatMessagePrivate::ChatMessagePrivate () {}
|
||||
|
||||
ChatMessagePrivate::~ChatMessagePrivate () {
|
||||
for (Content *content : contents) {
|
||||
free(content);
|
||||
}
|
||||
if (salOp)
|
||||
salOp->release();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue