From 665a2cafacdb038478c614b040958b5f81cb7548 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 3 Mar 2012 11:49:22 +0100 Subject: [PATCH] Categoricals.c: Call payload->destroy inside categoricals_done --- src/math/categoricals.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/math/categoricals.c b/src/math/categoricals.c index d4d4324370..5aeb7e213c 100644 --- a/src/math/categoricals.c +++ b/src/math/categoricals.c @@ -575,6 +575,8 @@ categoricals_done (const struct categoricals *cat_) const double bin = categoricals_get_code_for_case (cat, x, iv->ccase); \ iap->enc_sum [x - iap->base_subscript_short] += bin * iv->cc; } + if (cat->payload && cat->payload->destroy) + cat->payload->destroy (cat->aux1, cat->aux2, iv->user_data); } } -- 2.30.2