diff --git a/reader.go b/reader.go index 2835ce6..676f9a5 100644 --- a/reader.go +++ b/reader.go @@ -18,7 +18,9 @@ func NewReader(source io.Reader, fromEncoding string, toEncoding string) (*Reade converter, err := NewConverter(fromEncoding, toEncoding) if err == nil { - return NewReaderFromConverter(source, converter), err + reader := iconv.NewReaderFromConverter(source, converter) + converter.Close() + return reader, err } // return the error