Example #1
0
 /**
  * Clean up memory.
  */
 public void destroy()
 {
     Object = null;
     if (next != null)
     {
         next.destroy();
     }
     next = null;
 }
Example #2
0
        /**
         * Clean up memory.
         */
        public void destroy()
        {
            if (_headA != null)
            {
                _headA.destroy();
            }
            _headA = null;
            // if(_tailA != null)
            // _tailA.destroy();
            _tailA = null;
            if (_headB != null)
            {
                _headB.destroy();
            }
            _headB = null;
            // if(_tailB != null)
            // _tailB.destroy();
            _tailB = null;

            if (_northWestTree != null)
            {
                _northWestTree.destroy();
            }
            _northWestTree = null;
            if (_northEastTree != null)
            {
                _northEastTree.destroy();
            }
            _northEastTree = null;
            if (_southEastTree != null)
            {
                _southEastTree.destroy();
            }
            _southEastTree = null;
            if (_southWestTree != null)
            {
                _southWestTree.destroy();
            }
            _southWestTree = null;

            _object             = null;
            _processingCallback = null;
            _notifyCallback     = null;

            //_pool.free(this);
        }