fixed #1500:fix a memory leak

This commit is contained in:
minggo 2012-10-10 12:02:56 +08:00
parent 96b3232910
commit d8b0c75675
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}