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

Function proj_context_destroy

src/ctx.cpp:309–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309PJ_CONTEXT *proj_context_destroy(PJ_CONTEXT *ctx) {
310 if (nullptr == ctx)
311 return nullptr;
312
313 /* Trying to free the default context is a no-op (since it is statically
314 * allocated) */
315 if (pj_get_default_ctx() == ctx)
316 return nullptr;
317
318 delete ctx;
319 return nullptr;
320}
321
322/************************************************************************/
323/* proj_context_use_proj4_init_rules() */

Callers 15

mainFunction · 0.85
TearDownMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
mainFunction · 0.85
~PjContextKeeperMethod · 0.85
TearDownMethod · 0.85
~PjContextKeeperMethod · 0.85
TEST_FFunction · 0.85

Calls 1

pj_get_default_ctxFunction · 0.85

Tested by 15

TearDownMethod · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
mainFunction · 0.68
~PjContextKeeperMethod · 0.68
TearDownMethod · 0.68
~PjContextKeeperMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68