-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Scene.newwill callscene_alloc
Lines 83 to 94 in df05c12
scene_alloc(VALUE rcv, SEL sel) { auto layer = mc_Scene::create(); auto scene = cocos2d::Scene::createWithPhysics(); scene->addChild(layer); layer->scene = scene; VALUE obj = rb_class_wrap_new((void *)layer, rcv); layer->obj = rb_retain(obj); return obj; } mc_Scene::create();creates C++ instanceLine 46 in df05c12
auto scene = new mc_Scene();
However, there is not delete anywhere.