[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
Thu Sep 28 19:57:59 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=112657
--- Comment #6 from Julien Nabet <serval2412 at yahoo.fr> ---
I traced the number of calls to constructor and destructor.
For ChartModel, it's ok, same number
It's wrong for UndoManager, I only see calls to its constructor, none for
destructor.
The use of UndoManager in ChartModel is:
::rtl::Reference< UndoManager > m_pUndoManager;
(see https://opengrok.libreoffice.org/xref/core/chart2/inc/ChartModel.hxx#133)
I noticed destructor of ChartModel is:
196 ChartModel::~ChartModel()
197 {
198 if( m_xOldModelAgg.is())
199 m_xOldModelAgg->setDelegator( nullptr );
200 }
But then I'm completely lost since I don't know enough about rtl::reference,
weak ref, acquire/release, dispose/disposing to help here.
--
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/20170928/f5279657/attachment.html>
More information about the Libreoffice-bugs
mailing list