mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
fix(tracker): ReadInstrument forgot to close the file
This commit is contained in:
parent
dd7b5ddc84
commit
5ee7e44ed7
@ -136,6 +136,7 @@ func (m *Model) LoadInstrument(r io.ReadCloser) bool {
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
r.Close() // if we can't close the file, it's not a big deal, so ignore the error
|
||||
var instrument sointu.Instrument
|
||||
var errJSON, errYaml, err4ki, err4kp error
|
||||
var patch sointu.Patch
|
||||
|
Reference in New Issue
Block a user