You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on Xcode and it has detected that this might still be happening. I see several instances of leaking memory originating at https://github.com/slembcke/Chipmunk2D/blame/edf83e5603c5a0a104996bd816fca6d3facedd6a/src/cpSpaceComponent.c#L101. They seem to be happening when a body comes to rest and sleep time threshold has been set with cpSpaceSetSleepTimeThreshold(space, 1.0f). Then I deallocate the world "reset" (deallocate then recreate the space + bodies) the setup after the body has fallen asleep and wait for them to sleep again, I repeat this until I have enough memory leaks.
I am also attaching a screenshot with the malloc backtrace for the allocation in case it helps.
The text was updated successfully, but these errors were encountered:
I've been working on Xcode and it has detected that this might still be happening. I see several instances of leaking memory originating at https://github.com/slembcke/Chipmunk2D/blame/edf83e5603c5a0a104996bd816fca6d3facedd6a/src/cpSpaceComponent.c#L101. They seem to be happening when a body comes to rest and sleep time threshold has been set with
cpSpaceSetSleepTimeThreshold(space, 1.0f)
. Then I deallocate the world "reset" (deallocate then recreate the space + bodies) the setup after the body has fallen asleep and wait for them to sleep again, I repeat this until I have enough memory leaks.I am also attaching a screenshot with the malloc backtrace for the allocation in case it helps.
The text was updated successfully, but these errors were encountered: