aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/PJ_igh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/PJ_igh.c b/src/PJ_igh.c
index b5ad7de2..4155c856 100644
--- a/src/PJ_igh.c
+++ b/src/PJ_igh.c
@@ -116,7 +116,10 @@ FREEUP;
if (P) {
int i;
for (i = 0; i < 12; ++i)
- if (P->pj[i]) pj_dalloc(P->pj[i]);
+ {
+ if (P->pj[i])
+ (*(P->pj[i]->pfree))(P->pj[i]);
+ }
pj_dalloc(P);
}
}