2.3 releaseRes释放不了资源来吗

  • Creator 版本:2.3

  • 目标平台: ios
    start () {
    // init logic
    // cc.dynamicAtlasManager.enabled=true;
    this.btnadd.on(cc.Node.EventType.TOUCH_END,()=>{
    cc.loader.loadRes(“1”,cc.SpriteFrame,(err,obj)=>{
    if(obj){
    this.n1 = new cc.Node();
    this.n1.addComponent(cc.Sprite).spriteFrame = obj
    this.node.addChild(this.n1,0)
    }
    })
    })
    this.btndelete.on(cc.Node.EventType.TOUCH_END,()=>{
    if(this.n1){
    this.n1.destroy();
    this.n1= null;
    cc.loader.releaseRes(“1”,cc.SpriteFrame)

          cc.sys.garbageCollect();
      }
    

    })
    }

就新建的helloworld,这样加载释放资源,最后内存还是没释放,不过下次加载的时候也不会在加载了,是哪个地方还有缓存了纹理吗?

引擎内存泄漏,https://github.com/cocos-creator/cocos2d-x-lite/pull/2215这里已经解决了