From 7f29e490415d3dd44b881f39d8377d2bef0db999 Mon Sep 17 00:00:00 2001 From: Rynchodon Date: Mon, 10 Jul 2017 20:11:40 -0400 Subject: [PATCH] don't crash --- PluginManager/Properties/VersionInfo.cs | 2 +- TorchPlugin/TorchPlugin.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PluginManager/Properties/VersionInfo.cs b/PluginManager/Properties/VersionInfo.cs index 0bbe592..ac75c9d 100644 --- a/PluginManager/Properties/VersionInfo.cs +++ b/PluginManager/Properties/VersionInfo.cs @@ -12,4 +12,4 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.1.1.0")] diff --git a/TorchPlugin/TorchPlugin.cs b/TorchPlugin/TorchPlugin.cs index ea4480c..edbbc0d 100644 --- a/TorchPlugin/TorchPlugin.cs +++ b/TorchPlugin/TorchPlugin.cs @@ -56,7 +56,7 @@ public TorchPlugin() public override void Dispose() { - _loader.Dispose(); + _loader?.Dispose(); _loader = null; }