mirror of https://github.com/axmolengine/axmol.git
fixed #1500:fix a memory leak
This commit is contained in:
parent
96b3232910
commit
d8b0c75675
|
@ -266,7 +266,7 @@ bool CCRenderTexture::initWithWidthAndHeight(int w, int h, CCTexture2DPixelForma
|
|||
bRet = true;
|
||||
} while (0);
|
||||
|
||||
CC_SAFE_DELETE(data);
|
||||
CC_SAFE_FREE(data);
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue