Skip to content

Memory leak in TSTMstStgs #82

@JonnyOThan

Description

@JonnyOThan

Noticed this 19x in someone's logs before they crashed.

268364 [LOG 20:46:55.419] [KSPCF:MemoryLeaks] A destroyed TarsierSpaceTech:TSTMstStgs instance is owning a OnGameSettingsApplied GameEvents callback. No action has been taken, but unless this mod is relying on this pattern, this is likely a memory leak.

This line should be removing the event handler, not adding another one :p

GameEvents.OnGameSettingsApplied.Add(ApplySettings);

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