MCPcopy Create free account
hub / github.com/OSGeo/PROJ / proj_destroy

Function proj_destroy

src/malloc.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98/************************************************************************/
99
100PJ *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

Callers 15

LLVMFuzzerTestOneInputFunction · 0.85
test_transformFunction · 0.85
test_transformFunction · 0.85
mainFunction · 0.85
TESTFunction · 0.85
mainFunction · 0.85
~ObjectKeeperMethod · 0.85
~ObjectKeeperMethod · 0.85
clearMethod · 0.85
TEST_FFunction · 0.85

Calls 1

proj_errnoFunction · 0.85

Tested by 15

test_transformFunction · 0.68
test_transformFunction · 0.68
TESTFunction · 0.68
mainFunction · 0.68
~ObjectKeeperMethod · 0.68
~ObjectKeeperMethod · 0.68
clearMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68