Example #1
0
 override public void Dispose()
 {
     if (_source != null)
     {
         _source.ReleaseRef();
     }
     else if (_loading)
     {
         _packageItem.owner.RemoveItemCallback(_packageItem, __imageLoaded);
     }
     base.Dispose();
 }
Example #2
0
        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();
        }