X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcharsets.c;h=9332aa0c0a42996ac2c24cb6618567defcea7c2b;hb=2f29d901e7ae8091b92f228a6aa5212d5fe2a01a;hp=d2c79bd0adb8de3c1fbafaf095794ad73f5e0948;hpb=3fe9b28933e296a503a713f92a30a5c75e267272;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); + } } }