KSP-RO / Kerbal-Joint-Reinforcement-Continued

Physics stabilizer plugin for Kerbal Space Program
GNU General Public License v3.0
36 stars 14 forks source link

Potential memory leaks identified by KSPCommunityFixes #11

Closed Gordon-Dry closed 1 year ago

Gordon-Dry commented 2 years ago

Latest version of KSPCommunityFixes reports on some potential memory leaks on scene changes. A quick look in the log after scene change to Flight Scene shows 2 potential locations in Kerbal-Joint-Reinforcement-Continued where a leak might exist:

[LOG 21:14:59.010] [KSPCF:MemoryLeaks] Removed a onVesselCreate GameEvents callback owned by a destroyed KerbalJointReinforcement:KJRDecouplerReinforcementModule instance
[LOG 21:14:59.013] [KSPCF:MemoryLeaks] Removed a onVesselWasModified GameEvents callback owned by a destroyed KerbalJointReinforcement:KJRLaunchClampReinforcementModule instance
siimav commented 1 year ago

Fixed