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

--- Comment #6 from Julien Nabet <serval2...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to