diff options
Diffstat (limited to 'src/malloc.cpp')
| -rw-r--r-- | src/malloc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/malloc.cpp b/src/malloc.cpp index 6bd4639e..817f8f20 100644 --- a/src/malloc.cpp +++ b/src/malloc.cpp @@ -219,6 +219,12 @@ PJ *pj_default_destructor (PJ *P, int errlev) { /* Destructor */ if (nullptr==P) return nullptr; + + pj_dealloc(P->def_size); + pj_dealloc(P->def_shape); + pj_dealloc(P->def_spherification); + pj_dealloc(P->def_ellps); + /* free grid lists */ pj_dealloc( P->gridlist ); pj_dealloc( P->vgridlist_geoid ); |
