[cppmyth] Redefine macros

Check pointer is not NULL before deleting