| 98 | /************************************************************************/ |
| 99 | |
| 100 | PJ *proj_destroy(PJ *P) { |
| 101 | if (nullptr == P || !P->destructor) |
| 102 | return nullptr; |
| 103 | /* free projection parameters - all the hard work is done by */ |
| 104 | /* pj_default_destructor, which is supposed */ |
| 105 | /* to be called as the last step of the local destructor */ |
| 106 | /* pointed to by P->destructor. In most cases, */ |
| 107 | /* pj_default_destructor actually *is* what is pointed to */ |
| 108 | P->destructor(P, proj_errno(P)); |
| 109 | return nullptr; |
| 110 | } |
| 111 | |
| 112 | /*****************************************************************************/ |
| 113 | // cppcheck-suppress uninitMemberVar |