mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Fills the body of Content objects on destruction
This commit is a duplicate of bd08e5940c in master
This commit is contained in:
parent
e2013f1aa0
commit
c50ba6614d
2 changed files with 8 additions and 0 deletions
|
|
@ -53,6 +53,13 @@ Content::Content (ContentPrivate &p) : ClonableObject(p) {
|
|||
|
||||
}
|
||||
|
||||
Content::~Content () {
|
||||
L_D();
|
||||
/* Fills the body with zeros before releasing since it may contain
|
||||
private data like cipher keys or decoded messages. */
|
||||
d->body.assign(d->body.size(), 0);
|
||||
}
|
||||
|
||||
Content &Content::operator= (const Content &src) {
|
||||
L_D();
|
||||
if (this != &src) {
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ public:
|
|||
Content ();
|
||||
Content (const Content &src);
|
||||
Content (Content &&src);
|
||||
~Content ();
|
||||
|
||||
Content &operator= (const Content &src);
|
||||
Content &operator= (Content &&src);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue