Fix broken ref count

Submitted by:	gcooper
This commit is contained in:
Kevin Lo 2012-05-21 02:41:15 +00:00
parent f529372e8a
commit 040b0e4eda
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235712

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;