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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 18 07:15:07 UTC 2017


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

--- Comment #1 from Alex Thurgood <iplaw67 at tuta.io> ---

sd::TemplateScanner::ScanEntry()
is invoked from TemplateScanner.cxx at line 242 in the following block :

            {
                //  Check whether the entry is an impress template.  If so
                //  add a new entry to the resulting list (which is created
                //  first if necessary).
                //  These strings are used to find impress templates in the
tree of
                //  template files.  Should probably be determined dynamically.
                if (    (sContentType ==
MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII)
                    ||  (sContentType ==
MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII)
                    ||  (sContentType ==
"application/vnd.stardivision.impress")
                    ||  (sContentType == MIMETYPE_VND_SUN_XML_IMPRESS_ASCII)
                        // The following id comes from the bugdoc in #i2764#.
                    ||  (sContentType == "Impress 2.0"))
                {
                    OUString sLocalisedTitle =
SfxDocumentTemplates::ConvertResourceString(sTitle);
                    mpLastAddedEntry = new TemplateEntry(sLocalisedTitle,
sTargetURL);
                    mpTemplateDirectory->InsertEntry(mpLastAddedEntry);
                }
            }

-- 
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/20170818/3ab46f24/attachment-0001.html>


More information about the Libreoffice-bugs mailing list