Skip to content

Potential memory leaks identified by KSPCommunityFixes #15

@Gordon-Dry

Description

@Gordon-Dry

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 CustomBarnKit where a leak might exist:

[LOG 20:42:39.416] [KSPCF:MemoryLeaks] A destroyed CustomBarnKit:CustomBarnKit instance is owning a onNewGameLevelLoadRequestWasSanctionedAndActioned GameEvents callback. No action has been taken, but unless this mod is relying on this pattern, this is likely a memory leak.
[LOG 20:42:39.429] [KSPCF:MemoryLeaks] A destroyed CustomBarnKit:CustomBarnKit instance is owning a onEditorRestart GameEvents callback. No action has been taken, but unless this mod is relying on this pattern, this is likely a memory leak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions