Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: [PATCH] svdrp for vdr-1.3.20



C.Y.M wrote:
After running vdr-1.3.20, valgrind was complaining about the following line. Attached is a patch.

Best Regards,
C.Y.M.

--- vdr-1.3.20/interface.c.orig 2004-11-01 06:23:28.000000000 -0800
+++ vdr-1.3.20/interface.c 2005-02-05 14:33:05.000000000 -0800
@@ -26,6 +26,7 @@

cInterface::~cInterface()
{
+ if (SVDRP)
delete SVDRP;
}
'delete' ist "NULL-proof", so there's no need to check it first.
There are plenty of places in VDR where pointers are 'delete'd
without first testing them for NULL.

Klaus




Home | Main Index | Thread Index