[Libreoffice-bugs] [Bug 112657] SfxUndoManager_Data:: SfxUndoManager_Data leaks memory with multiple invocations

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Sep 26 15:22:32 UTC 2017


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

--- Comment #3 from Alex Thurgood <iplaw67 at tuta.io> ---
(In reply to Alex Thurgood from comment #2)
> Confirming, and allegedly leaking here :
> 

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

-- 
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/20170926/d7cdd2aa/attachment-0001.html>


More information about the Libreoffice-bugs mailing list