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