[Libreoffice] [PATCH] Remove unused code
Stephan Bergmann
sbergman at redhat.com
Fri Jan 20 13:18:13 PST 2012
On 01/20/2012 09:57 PM, Michael Stahl wrote:
> 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.
It might make sense to treat destructors specially in callcatcher, as
they indicate "resource leak" (unless all the constructors of a given
class are also unused) rather than "unused code."
Stephan
More information about the LibreOffice
mailing list