[Libreoffice] [PUSHED, partial] Remove NULL checks from delete
Kohei Yoshida
kohei.yoshida at suse.com
Wed Nov 16 21:22:19 PST 2011
On Wed, 2011-11-16 at 21:05 -0500, Andrew Douglas Pitonyak wrote:
> Setting a pointer to NULL after deleting the contents of the pointer is
> safe so that if you go to delete it again it is not a problem.
Safe if the variable that holds the pointer is likely to be accessed
again. If not, it's pointless to set the pointer value to NULL after
delete.
Kohei
--
Kohei Yoshida, LibreOffice hacker, Calc
More information about the LibreOffice
mailing list