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:
parent
802043c03f
commit
50ea06ed5a
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue