<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - SfxUndoManager_Data::SfxUndoManager_Data leaks memory with multiple invocations"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=112657#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - SfxUndoManager_Data::SfxUndoManager_Data leaks memory with multiple invocations"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=112657">bug 112657</a>
              from <span class="vcard"><a class="email" href="mailto:iplaw67@tuta.io" title="Alex Thurgood <iplaw67@tuta.io>"> <span class="fn">Alex Thurgood</span></a>
</span></b>
        <pre>(In reply to Alex Thurgood from <a href="show_bug.cgi?id=112657#c2">comment #2</a>)
<span class="quote">> Confirming, and allegedly leaking here :
> </span >

Ignore the previous code pointer, I was looking at the wrong part, it seems,
but the UndoManager code here might be more promising:

    explicit SfxUndoManager_Data( size_t i_nMaxUndoActionCount )
        :pUndoArray( new SfxUndoArray( i_nMaxUndoActionCount ) )
        ,pActUndoArray( nullptr )
        ,mnMarks( 0 )
        ,mnEmptyMark(MARK_INVALID)
        ,mbUndoEnabled( true )
        ,mbDoing( false )
        ,mbClearUntilTopLevel( false )
    {
        pActUndoArray = pUndoArray.get();
    }


lines 233-243 of undo.cxx</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>