mirror of https://github.com/axmolengine/axmol.git
commit
d1a628f364
|
@ -232,6 +232,7 @@ CCDictionary* CCTextureCache::snapshotTextures()
|
|||
{
|
||||
pRet->setObject(pElement->getObject(), pElement->getStrKey());
|
||||
}
|
||||
pRet->autorelease();
|
||||
return pRet;
|
||||
}
|
||||
|
||||
|
|
|
@ -46,24 +46,9 @@ CCControlColourPicker::CCControlColourPicker()
|
|||
|
||||
CCControlColourPicker::~CCControlColourPicker()
|
||||
{
|
||||
if (m_background)
|
||||
{
|
||||
m_background->removeFromParentAndCleanup(true);
|
||||
}
|
||||
|
||||
if (m_huePicker)
|
||||
{
|
||||
m_huePicker->removeFromParentAndCleanup(true);
|
||||
}
|
||||
|
||||
if (m_colourPicker)
|
||||
{
|
||||
m_colourPicker->removeFromParentAndCleanup(true);
|
||||
}
|
||||
|
||||
m_background = NULL;
|
||||
m_huePicker = NULL;
|
||||
m_colourPicker = NULL;
|
||||
CC_SAFE_RELEASE(m_background);
|
||||
CC_SAFE_RELEASE(m_huePicker);
|
||||
CC_SAFE_RELEASE(m_colourPicker);
|
||||
}
|
||||
|
||||
bool CCControlColourPicker::init()
|
||||
|
|
|
@ -557,6 +557,8 @@ int WebSocket::onSocketCallback(struct libwebsocket_context *ctx,
|
|||
CC_SAFE_DELETE(data);
|
||||
CC_SAFE_DELETE_ARRAY(buf);
|
||||
}
|
||||
|
||||
CC_SAFE_DELETE(subThreadMsg);
|
||||
}
|
||||
|
||||
_wsHelper->_subThreadWsMessageQueue->clear();
|
||||
|
|
Loading…
Reference in New Issue