override public void Dispose() { if (_source != null) { _source.ReleaseRef(); } else if (_loading) { _packageItem.owner.RemoveItemCallback(_packageItem, __imageLoaded); } base.Dispose(); }
override public void Dispose() { if (_loading == 2) { _contentItem.owner.RemoveItemCallback(_contentItem, __uiResLoaded); } //else if(_loading==3) // _jtSprite.dispose(); else if (_content != null) { /*if(_content==_jtSprite) * _jtSprite.dispose(); * else if(_content is SoundExt) * _sound.dispose();*/ } if (_contentData != null) { _contentData.ReleaseRef(); } base.Dispose(); }