Free writer

This commit is contained in:
Flamefire committed 2014-03-23 13:00:56 +01:00
1 parent 9b31d674cd
commit 26f0c82db1
1 file changed
+10
+10
View File
@@ -177,11 +177,21 @@ namespace VocaluxeLib.Songs
_WriteHeader();
_WriteNotes();
}
catch (UnauthorizedAccessException)
{
CBase.Log.LogError("Cannot write " + filePath + ". Directory might be readonly or requires admin rights.");
return false;
}
catch (Exception e)
{
CBase.Log.LogError("Unhandled exception while writing " + filePath + ": " + e);
return false;
}
finally
{
if (_Tw != null)
_Tw.Dispose();
}
return true;
}
}