修复使用无png粒子文件内存没释放的问题

制作粒子效果导出时若选择嵌入图片,也就是无png只有单个plist的粒子文件(该粒子图片数据是嵌入在粒子plist的textureImageData属性中),代码中通过ParticleSystem创建粒子则会引发内存问题

经分析在ParticleSystem::initWithDictionary函数中并不会从缓存中读取无png的粒子,
导致每次都要解析textureImageData属性并调用Director::getInstance()->getTextureCache()->addImage,
而addImage函数内部则会调用VolatileTextureMgr::addImage(texture, image);添加进缓存,导致内存不断增长,无法释放(该问题只在安卓出现);

解决方案,可以在ParticleSystem::initWithDictionary稍作修改,优先从缓存读取图片数据,可避免这问题:

 tex = tex = Director::getInstance()->getTextureCache()->getTextureForKey(textureName);//新增代码,从缓存中读取
 if(tex == nullptr){
     tex = Director::getInstance()->getTextureCache()->addImage(textureName);//这是引擎源代码
}

该问题在cocos2d-x 3.0以上全系列应该都存在,也建议引擎组可以修复下