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.
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.