Skip to content

Commit

Permalink
close taglib file after use
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz authored Mar 9, 2024
1 parent 88e58c0 commit 7cd1bee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tags/taglib/taglib.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func (TagLib) Read(absPath string) (tagcommon.Info, error) {
if err != nil {
return nil, fmt.Errorf("open: %w", err)
}
defer f.Close()
props := f.ReadAudioProperties()
raw := f.ReadTags()
return &info{raw, props}, nil
Expand Down

0 comments on commit 7cd1bee

Please sign in to comment.