because the object is release twice.
remember one new is matched one release/autorelease/delete.
most objects should used like this: CCXXX c1=CCXXX::create();
this code just like: CCXXX c1=new CCXXX();c1->autorelease();
Some objects should be used in long life and it is not added to parent,code should like:
In Layer Class construct function: c1=new CCXXX();
In Layer Class deconstruct function: delete c1;
you must show me code that howto instance Class:
is it like this: ClassX * c=new ClassX();c->autorelease();