mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 22:40:17 -06:00
dispoing of tfile
This commit is contained in:
@@ -223,11 +223,11 @@ namespace FileFlows.MusicNodes
|
||||
|
||||
public void ParseFileNameInfo(string filename, MusicInfo mi)
|
||||
{
|
||||
using var tfile = TagLib.File.Create(filename);
|
||||
try
|
||||
{
|
||||
var fileInfo = new FileInfo(filename);
|
||||
|
||||
using var tfile = TagLib.File.Create(filename);
|
||||
bool dirty = false;
|
||||
|
||||
if (mi.Disc < 1)
|
||||
@@ -318,6 +318,10 @@ namespace FileFlows.MusicNodes
|
||||
{
|
||||
Logger?.WLog("Failed parsing music info from filename: " + ex.Message + Environment.NewLine + ex.StackTrace);
|
||||
}
|
||||
finally
|
||||
{
|
||||
tfile.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user