diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-14 12:43:49 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-14 12:43:49 +0100 |
| commit | b2aa77f811dc0dd257afe3fccac49c62fcf039b2 (patch) | |
| tree | 11079887422b8de732df38ca9fb678edd8cfb568 /src/pj_init.c | |
| parent | 93d0daa96287e14ec7fa38c9185fe8e3866243db (diff) | |
| download | PROJ-b2aa77f811dc0dd257afe3fccac49c62fcf039b2.tar.gz PROJ-b2aa77f811dc0dd257afe3fccac49c62fcf039b2.zip | |
C API: rename recently added _unref and _free functions as _destroy (fixes #1198)
Diffstat (limited to 'src/pj_init.c')
| -rw-r--r-- | src/pj_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pj_init.c b/src/pj_init.c index bc81235e..36a3276f 100644 --- a/src/pj_init.c +++ b/src/pj_init.c @@ -292,7 +292,7 @@ Expand key from buffer or (if not in buffer) from init file proj_string = proj_obj_as_proj_string(ctx, src, PJ_PROJ_4, NULL); if( !proj_string ) { - proj_obj_unref(src); + proj_obj_destroy(src); return 0; } definition = (char*)calloc(1, strlen(proj_string)+1); @@ -300,7 +300,7 @@ Expand key from buffer or (if not in buffer) from init file strcpy(definition, proj_string); } - proj_obj_unref(src); + proj_obj_destroy(src); } } |
