libflac.go: Don't close the writer in Encoder Close()

We didn't open the writer so I guess we shouldn't close it either.
This commit is contained in:
Will Newton 2017-02-10 14:29:07 +00:00
parent 802043c03f
commit 50ea06ed5a

View file

@ -436,8 +436,5 @@ func (e *Encoder) Close() {
encoderPtrs.del(e)
e.e = nil
}
if e.writer != nil {
e.writer.Close()
}
runtime.SetFinalizer(e, nil)
}