[aspectc-user] Deletion of unnecessary null pointer checks?

Markus Elfring Markus.Elfring at web.de
Sun Oct 30 21:58:16 CET 2011


Hello!

I have found a few places in the source files where a null pointer check is used before a call of the operator "delete[]" (e. g. in destructors).

Examples:
- ACConfig.cc
- PreAnswer.cc
- Project.cc

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

Regards,
Markus



More information about the aspectc-user mailing list