Skip to content

Commit

Permalink
Fixed small memory leak caused by not releasing callback from GameEv…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
linuxgurugamer committed Aug 30, 2022
1 parent 2fba7ec commit 6bfc823
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ChangeLog

1.9.10.1
Fixed small memory leak caused by not releasing callback from GameEvents

1.9.10
Thanks to github user @peterhaneve for this:
Optimize profile saving (reduce persistent file size), saves space and speeds up loading and saving
Expand Down
Binary file modified GameData/ScienceAlert/Plugins/ScienceAlert.pdb
Binary file not shown.
11 changes: 8 additions & 3 deletions GameData/ScienceAlert/ScienceAlert.version
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@
"VERSION": {
"MAJOR": 1,
"MINOR": 9,
"PATCH": 9,
"BUILD": 2
"PATCH": 10,
"BUILD": 1
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 3
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 8,
"MINOR": 9,
"PATCH": 0
}
}
2 changes: 1 addition & 1 deletion ScienceAlert.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"MAJOR": 1,
"MINOR": 9,
"PATCH": 10,
"BUILD": 0
"BUILD": 1
},
"KSP_VERSION": {
"MAJOR": 1,
Expand Down
4 changes: 2 additions & 2 deletions Source/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

using System.Reflection;

[assembly: AssemblyVersion("1.9.9.2")]
[assembly: AssemblyFileVersion("1.9.9.2")]
[assembly: AssemblyVersion("1.9.10.1")]
[assembly: AssemblyFileVersion("1.9.10.1")]
1 change: 1 addition & 0 deletions Source/ScienceAlert.Windows/DraggableOptionsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ protected override Rect Setup()
{
base.OnDestroy();
OnVisibilityChange -= OnVisibilityChanged;
GameEvents.onVesselChange.Remove(OnVesselChanged);
}

private void OnVisibilityChanged(bool tf)
Expand Down

0 comments on commit 6bfc823

Please sign in to comment.