[Libreoffice-bugs] [Bug 111892] Memory Leak in sd::TemplateScanner::ScanEntry()

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 29 09:38:59 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111892

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |noelgrandin at gmail.com

--- Comment #9 from Julien Nabet <serval2412 at yahoo.fr> ---
Noel: following abandon of https://gerrit.libreoffice.org/#/c/41650/, if I
remember what you told about vector members, during destruction of the object,
vectors are automatically cleared. When they're cleared, their objects are
cleared too.

But here, since we've got a vector of pointers of TemplateEntry objects (see
https://opengrok.libreoffice.org/xref/core/sd/source/ui/inc/TemplateScanner.hxx#115),
shouldn't we add a loop to call delete on each entry of the vector during
destruction?
(https://opengrok.libreoffice.org/xref/core/sd/source/ui/dlg/TemplateScanner.cxx#128)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170829/4a36373d/attachment.html>


More information about the Libreoffice-bugs mailing list