Clear memory leaks of the test_uphone project
This commit is contained in:
natural-law 2010-09-17 06:51:34 +00:00
parent 069d3507e8
commit 5af16c3282
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,6 @@ bool CCSprite::init(void)
m_sBlendFunc.dst = CC_BLEND_DST; m_sBlendFunc.dst = CC_BLEND_DST;
// update texture (calls updateBlendFunc) // update texture (calls updateBlendFunc)
m_pobTexture = NULL;
setTexture(NULL); setTexture(NULL);
// clean the Quad // clean the Quad
@ -302,6 +301,7 @@ bool CCSprite::initWithSpriteSheet(CCSpriteSheet *pSpriteSheet, CGRect rect)
} }
CCSprite::CCSprite() CCSprite::CCSprite()
: m_pobTexture(NULL)
{ {
init(); init();
} }