Commit fd1084b8 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Free the contents upon ChatMessage destruction

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