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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("open: %w", err)
|
return nil, fmt.Errorf("open: %w", err)
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
props := f.ReadAudioProperties()
|
props := f.ReadAudioProperties()
|
||||||
raw := f.ReadTags()
|
raw := f.ReadTags()
|
||||||
return &info{raw, props}, nil
|
return &info{raw, props}, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user