LibreOffice / Future / design notes foo ...

Michael Meeks michael.meeks at collabora.com
Wed Sep 10 01:19:15 PDT 2014


On Tue, 2014-09-09 at 19:05 +0200, Thorsten Behrens wrote:
> Michael Meeks wrote:
> > 	* VCL lifecycle
> > 		+ switching to reference counted / smart-pointer
> > 		  for all VCL Window sub-classes
>
> As a random word of warning - windows point back & forth all over the
> place, to both parent _and_ children; unless one uses weak pointers or
> some other means of breaking cycles, this change would just exchange
> crashes for leaks.

	The proposed means of breaking cycles is reasonably reliable: replace
all 'delete <Window derivative>' calls with a pWindow->dispose(); call -
that releases / clears those refs =)

	Of course, its a chunk of work too - particularly when looking for some
incremental approach to that.

	ATB,

		Michael.

-- 
 michael.meeks at collabora.com  <><, Pseudo Engineer, itinerant idiot



More information about the LibreOffice mailing list