RT,我在helloword工程中,新建了一个NormalGround的类,继承于CCSprite。
NormalGround* NormalGround::create(){
NormalGround* ground = (NormalGround *)NormalGround::spriteWithFile("CloseNormal.png");
ground->setAnchorPoint(ccp(0,0));
ground->setPositionInPixels(ccp(100,100));
ground->type = 0;
return ground;
}
这是它的创建方法。我在HellowordScene里面create一个实例,并且在界面中addchild。运行没有问题。但是在关闭程序的时候报错。如下:
指针停在这里
CCSprite::~CCSprite(void)
{
CC_SAFE_RELEASE(m_pobTexture);
}
求大神解答这是怎么回事?