From 2f29d901e7ae8091b92f228a6aa5212d5fe2a01a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 10 Sep 2009 15:30:47 +0200 Subject: [PATCH] Fix leak in pp2_charset_destroy --- src/charsets.c | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } } -- 1.7.10.4