<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Memory Leak in sd::TemplateScanner::ScanEntry()"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111892">bug 111892</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>noelgrandin@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Memory Leak in sd::TemplateScanner::ScanEntry()"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111892#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Memory Leak in sd::TemplateScanner::ScanEntry()"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111892">bug 111892</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre>Noel: following abandon of <a href="https://gerrit.libreoffice.org/#/c/41650/">https://gerrit.libreoffice.org/#/c/41650/</a>, 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
<a href="https://opengrok.libreoffice.org/xref/core/sd/source/ui/inc/TemplateScanner.hxx#115">https://opengrok.libreoffice.org/xref/core/sd/source/ui/inc/TemplateScanner.hxx#115</a>),
shouldn't we add a loop to call delete on each entry of the vector during
destruction?
(<a href="https://opengrok.libreoffice.org/xref/core/sd/source/ui/dlg/TemplateScanner.cxx#128">https://opengrok.libreoffice.org/xref/core/sd/source/ui/dlg/TemplateScanner.cxx#128</a>)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>