Deletion of unnecessary null pointer checks?
Status: Beta
Brought to you by:
dov-g
I have found a place in a source files where a null pointer check is used before a call of the operator "delete[]".
https://github.com/dov/giv/blob/ff10d17d42aabfd2edbd23c078363245af86a873/src/GivImage.cc#L24
Would you like to omit such an extra check?
http://stackoverflow.com/questions/615355/is-there-any-reason-to-check-for-a-null-pointer-before-deleting
http://dietmar-kuehl.de/mirror/c++-faq/freestore-mgmt.html#faq-16.8