X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fcharsets.c;h=9332aa0c0a42996ac2c24cb6618567defcea7c2b;hb=b2807317725db68d786503711be67ecf163115b7;hp=d2c79bd0adb8de3c1fbafaf095794ad73f5e0948;hpb=e8680d3e8a8900797c7bac415e20b127a7a077b9;p=pazpar2-moved-to-github.git diff --git a/src/charsets.c b/src/charsets.c index d2c79bd..9332aa0 100644 --- a/src/charsets.c +++ b/src/charsets.c @@ -132,7 +132,12 @@ void pp2_charset_destroy(pp2_charset_t pct) assert(pct->ref_count >= 1); --(pct->ref_count); if (pct->ref_count == 0) + { +#if YAZ_HAVE_ICU + icu_chain_destroy(pct->icu_chn); +#endif xfree(pct); + } } }