Fix broken ref count

Submitted by:	gcooper
This commit is contained in:
kevlo 2012-05-21 02:41:15 +00:00
parent c50e4642a9
commit d5c0b27552

View File

@ -133,6 +133,7 @@ iconv_register_converter(struct iconv_converter_class *dcp)
static int
iconv_unregister_converter(struct iconv_converter_class *dcp)
{
dcp->refs--;
if (dcp->refs > 1) {
ICDEBUG("converter have %d referenses left\n", dcp->refs);
return EBUSY;