Last active
July 7, 2016 07:56
-
-
Save kkabdol/c78834d6cb5dbaf049e897b9daf82ecd to your computer and use it in GitHub Desktop.
delete null pointers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AClass::~AClass() | |
| { | |
| //if( mObj != null ) // no need to check | |
| //{ | |
| delete mObj; | |
| //} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment