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@collabora.com <><, Pseudo Engineer, itinerant idiot
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.