diff --git a/cocos2dx/support/base64.cpp b/cocos2dx/support/base64.cpp index 5bd1304568..2151a8a396 100644 --- a/cocos2dx/support/base64.cpp +++ b/cocos2dx/support/base64.cpp @@ -101,7 +101,7 @@ int base64Decode(unsigned char *in, unsigned int inLength, unsigned char **out) if (ret > 0 ) { - std::printf("Base64Utils: error decoding"); + printf("Base64Utils: error decoding"); delete [] *out; *out = NULL; outLength = 0; diff --git a/tests/tests/RenderTextureTest/RenderTextureTest.cpp b/tests/tests/RenderTextureTest/RenderTextureTest.cpp index 8c2443cef3..f680389212 100644 --- a/tests/tests/RenderTextureTest/RenderTextureTest.cpp +++ b/tests/tests/RenderTextureTest/RenderTextureTest.cpp @@ -389,6 +389,10 @@ void RenderTextureZbuffer::ccTouchesEnded(CCSet* touches, CCEvent* event) void RenderTextureZbuffer::renderScreenShot() { CCRenderTexture *texture = CCRenderTexture::renderTextureWithWidthAndHeight(512, 512); + if (NULL == texture) + { + return; + } texture->setAnchorPoint(ccp(0, 0)); texture->begin();