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.

-- 
 [email protected]  <><, Pseudo Engineer, itinerant idiot

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to