aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PJ_urm5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PJ_urm5.c b/src/PJ_urm5.c
index d215fa14..ab853e0e 100644
--- a/src/PJ_urm5.c
+++ b/src/PJ_urm5.c
@@ -22,6 +22,10 @@ static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */
static void *freeup_new (PJ *P) { /* Destructor */
+ if (0==P)
+ return 0;
+ if (P->opaque)
+ pj_dealloc (P->opaque);
return pj_dealloc(P);
}