修复可能的资源泄露

This commit is contained in:
ww-rm
2025-10-26 21:28:11 +08:00
parent cc6d1b6c00
commit 997d55350d

View File

@@ -320,7 +320,7 @@ namespace SpineViewerCLI
spine.Update(warmup < 0 ? spine.GetAnimationMaxDuration() : warmup);
spine.Update(result.GetValue(OptTime));
var exporter = GetExporterFilledWithArgs(result, spine);
using var exporter = GetExporterFilledWithArgs(result, spine);
// 创建输出目录
string output = result.GetValue(OptOutput);