[PATCH] cleaning before = assignment lotuswordpro/source/filter/xfilter/xfparastyle.cxx
dtardon at redhat.com
Tue Jul 17 22:01:36 PDT 2012
On Tue, Jul 17, 2012 at 02:52:22PM -0700, julien2412 wrote:
> Thank you for the links David.
> I understand this design :
> - avoids duplication
> - guarantees that the new object can be completely built before swapping
> from old to new one
> But I still don't know at which moment do we delete old resources ? Or more
> precisely, it seems it doesn't remove anything so how can't it be a leak ?
It is not a leak :-) The old resources are deleted by destructor
(avoiding duplication, right?) when the copy (that now contains the old
content of this) goes out of scope.
More information about the LibreOffice