mirror of https://github.com/axmolengine/axmol.git
This commit is contained in:
parent
4957c72a0d
commit
7a9b417248
|
@ -23,7 +23,7 @@ THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __CCRIBBON_H__
|
#ifndef __CCRIBBON_H__
|
||||||
#define __CCRIBBON_H__
|
#define __CCRIBBON_H__
|
||||||
#include <gles/egl.h>
|
#include <GLES/egl.h>
|
||||||
#include "CCNode.h"
|
#include "CCNode.h"
|
||||||
#include "CCProtocols.h"
|
#include "CCProtocols.h"
|
||||||
namespace cocos2d {
|
namespace cocos2d {
|
||||||
|
|
|
@ -210,6 +210,7 @@ CCTexture2D * CCTextureCache::addImage(const char * path)
|
||||||
if(! image->initWithContentsOfFile(fullpath, kImageFormatJPG))
|
if(! image->initWithContentsOfFile(fullpath, kImageFormatJPG))
|
||||||
{
|
{
|
||||||
delete image;
|
delete image;
|
||||||
|
m_pDictLock->unlock();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
texture = new CCTexture2D();
|
texture = new CCTexture2D();
|
||||||
|
@ -238,6 +239,7 @@ CCTexture2D * CCTextureCache::addImage(const char * path)
|
||||||
if(! image->initWithContentsOfFile(fullpath, kImageFormatPNG))
|
if(! image->initWithContentsOfFile(fullpath, kImageFormatPNG))
|
||||||
{
|
{
|
||||||
delete image;
|
delete image;
|
||||||
|
m_pDictLock->unlock();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
texture = new CCTexture2D();
|
texture = new CCTexture2D();
|
||||||
|
|
Loading…
Reference in New Issue