Skip to content

Commit

Permalink
fix(tracker): ReadInstrument forgot to close the file
Browse files Browse the repository at this point in the history
  • Loading branch information
vsariola committed Jan 25, 2025
1 parent dd7b5dd commit 5ee7e44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
be computed every draw. ([#176][i176])

### Fixed
- Loading instrument forgot to close the file (in model.ReadInstrument)
- We try to honor the MIDI event time stamps, so that the timing between MIDI
events (as reported to us by RTMIDI) will be correct.
- When unmarshaling the recovery file, the unit parameter maps were "merged"
Expand Down
1 change: 1 addition & 0 deletions tracker/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ee7e44

Please sign in to comment.