Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Cleanup Character on object destruction #12

Merged
merged 3 commits into from
Dec 1, 2019
Merged

Conversation

Kaffeine
Copy link
Collaborator

@Kaffeine Kaffeine commented Nov 30, 2019

  • Call Character::Destroy() to remove allocated SnapIDs (fix leak on map rotation)
  • CEntity: Move extra SnapIDs allocation to the only relevant subclass — CLooperWall.

We have such a check in other places, so add the check here just for a case.
@bretonium bretonium merged commit a4104dd into master Dec 1, 2019
@Kaffeine Kaffeine deleted the fix-some-snap-id-leaks branch January 10, 2020 19:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants