diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-11-18 09:57:42 +0100 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2020-11-20 16:40:40 +0100 |
| commit | 43efca4ab87fb37a0931edcb6be11c0bd3784098 (patch) | |
| tree | b334bdb4d6898b740fbb4f300e6753a3d0878aff /src/init.cpp | |
| parent | ddb3b8da0756acbb8713aeb452de209eb350e996 (diff) | |
| download | PROJ-43efca4ab87fb37a0931edcb6be11c0bd3784098.tar.gz PROJ-43efca4ab87fb37a0931edcb6be11c0bd3784098.zip | |
Remove pj_free() and move it's functional parts to proj_destroy()
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 2d679618..95bb404f 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1,7 +1,7 @@ /****************************************************************************** * Project: PROJ.4 * Purpose: Initialize projection object from string definition. Includes - * pj_init(), pj_init_plus() and pj_free() function. + * pj_init(), and pj_init_plus() function. * Author: Gerald Evenden, Frank Warmerdam <warmerdam@pobox.com> * ****************************************************************************** @@ -829,7 +829,7 @@ pj_init_ctx_with_allow_init_epsg(PJ_CONTEXT *ctx, int argc, char **argv, int all err = proj_errno_reset (PIN); PIN = proj(PIN); if (proj_errno (PIN)) { - pj_free(PIN); + proj_destroy(PIN); return nullptr; } proj_errno_restore (PIN, err); |
