aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PJ_laea.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/PJ_laea.c b/src/PJ_laea.c
index 9ba60c26..e8573aca 100644
--- a/src/PJ_laea.c
+++ b/src/PJ_laea.c
@@ -179,8 +179,14 @@ INVERSE(s_inverse); /* spheroid */
0. : atan2(xy.x, xy.y);
return (lp);
}
-FREEUP; if (P) pj_dalloc(P); }
-ENTRY0(laea)
+FREEUP;
+ if (P) {
+ if (P->apa)
+ pj_dalloc(P->apa);
+ pj_dalloc(P);
+ }
+}
+ENTRY1(laea,apa)
double t;
if (fabs((t = fabs(P->phi0)) - HALFPI) < EPS10)