close taglib file after use
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user