Skip to content

Commit

Permalink
Fixed a memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxgurugamer committed Aug 23, 2022
1 parent 546e314 commit 92214e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ChangeLog

0.5.0.12
Fixed a memory leak

0.5.0.11
Thanks to github user @UnanimousCoward for this:
Update to service bays
Expand Down
2 changes: 1 addition & 1 deletion KerBalloons.version
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"MAJOR": 0,
"MINOR": 5,
"PATCH": 0,
"BUILD": 11
"BUILD": 12
},
"KSP_VERSION": {
"MAJOR": 1,
Expand Down
7 changes: 7 additions & 0 deletions Kerballoons/KerBalloonsCatagory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ void Awake()
GameEvents.onGUIEditorToolbarReady.Add(SubCategories);
}

void OnDestroy()
{
if (parts.Count > 0)
GameEvents.onGUIEditorToolbarReady.Remove(SubCategories);

}

private bool EditorItemsFilter(AvailablePart avPart)
{
return parts.Contains(avPart);
Expand Down

0 comments on commit 92214e8

Please sign in to comment.