Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi Michael,

On Friday, 2012-01-20 21:57:25 +0100, Michael Stahl wrote:

-VclEventListeners2::~VclEventListeners2()
-{
-}

i'm not sure this is right; if a destructor of a class is unused, but
its other methods are used, then that usually indicates a memory leak:
the destructor is never called because all instances are leaked.

Yup.. given that we have

class VclEventListeners2 : public vcl::DeletionNotifier
{
    ~VclEventListeners2();
}

maybe it's sufficient to make the dtor virtual if there's a delete
baseclasspointer somewhere?

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Attachment: pgpPvtK7DgvhN.pgp
Description: PGP signature


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.