[mythtv-commits] Ticket #3624: Code cleanup patch to remove redundant NULL checks

MythTV mythtv at cvs.mythtv.org
Sat Jun 16 15:19:46 UTC 2007


#3624: Code cleanup patch to remove redundant NULL checks
--------------------------------------------------------+-------------------
 Reporter:  Russell Bryant <russell at russellbryant.net>  |       Owner:  ijr    
     Type:  patch                                       |      Status:  new    
 Priority:  minor                                       |   Milestone:  unknown
Component:  mythtv                                      |     Version:  unknown
 Severity:  medium                                      |     Mlocked:  0      
--------------------------------------------------------+-------------------
 Checking for NULL before delete is redundant.  This patch removes most of
 these checks from programs/, libs/libmyth, libs/libmythtv, and
 libs/libmythui.  There are many places where the pointer is set to NULL
 after delete.  Most of those are still there, except for the ones setting
 member variables to NULL in a destructor, since that doesn't really
 provide any benefit.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3624>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list