Hi, 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. D. _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice