Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3_fix

This commit is contained in:
samuele3hu 2014-05-22 14:02:19 +08:00
commit 5c869c1356
4 changed files with 12 additions and 3 deletions

View File

@ -268,7 +268,11 @@ void TextureCache::addImageAsyncCallBack(float dt)
texture = it->second;
}
asyncStruct->callback(texture);
if (asyncStruct->callback)
{
asyncStruct->callback(texture);
}
if(image)
{
image->release();

View File

@ -25,7 +25,6 @@
#ifndef __TestCpp__GUIDefine__
#define __TestCpp__GUIDefine__
#include "cocos2d.h"
#include <string>
#include "cocostudio/ObjectFactory.h"

View File

@ -22,7 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "CocosGUI.h"
#include "ui/UIHelper.h"
#include "ui/UIWidget.h"
NS_CC_BEGIN

View File

@ -25,9 +25,14 @@ THE SOFTWARE.
#ifndef __UIHELPER_H__
#define __UIHELPER_H__
#include <string>
#include "base/CCPlatformMacros.h"
NS_CC_BEGIN
namespace ui {
class Widget;
/**
* @js NA