From d156b5d947bb2e4e9ec2eee447c790b2c4625f2c Mon Sep 17 00:00:00 2001 From: Perfare Date: Tue, 11 Dec 2018 15:24:49 +0800 Subject: [PATCH] small fixed --- AssetStudioGUI/AssetStudioGUIForm.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AssetStudioGUI/AssetStudioGUIForm.cs b/AssetStudioGUI/AssetStudioGUIForm.cs index 848e9ae..8b00a11 100644 --- a/AssetStudioGUI/AssetStudioGUIForm.cs +++ b/AssetStudioGUI/AssetStudioGUIForm.cs @@ -1707,8 +1707,11 @@ namespace AssetStudioGUI FMODreset(); - scriptDumper.Dispose(); - scriptDumper = null; + if (scriptDumper != null) + { + scriptDumper.Dispose(); + scriptDumper = null; + } } private void assetListView_MouseClick(object sender, MouseEventArgs e)