X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcategoricals.c;h=b9748c759ed8f114969728743c84d3880ce033df;hb=5e8c1fe99924e0ebe0f33441475f8164ee20918e;hp=7eaf82195badf8dab7e63914cff3934cd6e3d68c;hpb=0f3141f69456b3fd77d9772f98c294b910524e18;p=pspp diff --git a/src/math/categoricals.c b/src/math/categoricals.c index 7eaf82195b..b9748c759e 100644 --- a/src/math/categoricals.c +++ b/src/math/categoricals.c @@ -253,10 +253,8 @@ categoricals_destroy (struct categoricals *cat) /* Interate over each interaction value, and unref any cases that we reffed */ HMAP_FOR_EACH (iv, struct interaction_value, node, &cat->iap[i].ivmap) { -#if 0 - if (cat->payload) - cat->payload->destroy (cat->aux1, iv->user_data); -#endif + if (cat->payload && cat->payload->destroy) + cat->payload->destroy (cat->aux1, cat->aux2, iv->user_data); case_unref (iv->ccase); }