rubymotion-community / Joybox

Cocos2D & Box2D Wrapper for Ruby Motion - Currently out of date an unmaintained :-(
MIT License
280 stars 37 forks source link

extend Joybox::Common::Initialize responsible of memory leaks #71

Open n-studio opened 10 years ago

n-studio commented 10 years ago

My game being consistently crashing, I ran a serie of memory leak tests, just to discover that extend Joybox::Common::Initialize prevents deallocation of objects.

Since it is used in almost every Joybox classes, almost everything is retained and barely nothing in deallocated.

Besides, I don't understand the point of this extension since RubyMotion has already an initializer by default for all classes.

I removed all extend Joybox::Common::Initialize and my game works fine, without memory leaks.