From 2761db5a3f3d63282ae95e20560d2ed78b43f11d Mon Sep 17 00:00:00 2001 From: Jonathan Bayer Date: Tue, 23 Aug 2022 23:10:40 -0400 Subject: [PATCH] Fixed small memory leak --- Changelog.txt | 3 +++ EvaFollower.version | 2 +- Source/AssemblyVersion.cs | 4 ++-- Source/EvaController.cs | 2 +- Source/EvaFollower.csproj | 6 +++--- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 4a1eb6e..4749a39 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,8 @@ Changelog +1.1.1.14 + Fixed small memory leak + 1.1.1.13 Added AssemblyFileVersion Updated version file for 1.12 diff --git a/EvaFollower.version b/EvaFollower.version index 92e9d4e..5442de8 100644 --- a/EvaFollower.version +++ b/EvaFollower.version @@ -10,7 +10,7 @@ "MAJOR": 1, "MINOR": 1, "PATCH": 1, - "BUILD": 13 + "BUILD": 14 }, "KSP_VERSION": { "MAJOR": 1, diff --git a/Source/AssemblyVersion.cs b/Source/AssemblyVersion.cs index 668cb6b..dda1004 100644 --- a/Source/AssemblyVersion.cs +++ b/Source/AssemblyVersion.cs @@ -5,5 +5,5 @@ using System.Reflection; - [assembly: AssemblyVersion("1.1.1.12")] - [assembly: AssemblyFileVersion("1.1.1.12")] + [assembly: AssemblyVersion("1.1.1.13")] + [assembly: AssemblyFileVersion("1.1.1.13")] diff --git a/Source/EvaController.cs b/Source/EvaController.cs index d19ab5b..47c373a 100644 --- a/Source/EvaController.cs +++ b/Source/EvaController.cs @@ -44,7 +44,7 @@ public void OnDestroy() GameEvents.onCrewOnEva.Remove(OnCrewOnEva); GameEvents.onCrewBoardVessel.Remove(OnCrewBoardVessel); // GameEvents.onCrewKilled.Remove(OnCrewKilled); - GameEvents.onVesselWillDestroy.Add(VesselDestroyed); + GameEvents.onVesselWillDestroy.Remove(VesselDestroyed); GameEvents.onGameStateSave.Remove(OnSave); GameEvents.onFlightReady.Remove(onFlightReadyCallback); diff --git a/Source/EvaFollower.csproj b/Source/EvaFollower.csproj index 89328c5..c4f1256 100644 --- a/Source/EvaFollower.csproj +++ b/Source/EvaFollower.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,7 +10,7 @@ Properties MSD.EvaFollower EvaFollower - v4.5 + v4.8 512 @@ -120,4 +120,4 @@ if $(ConfigurationName) == Release ( - + \ No newline at end of file