Free all the resources belonging to this object.
541363
public void free()
    {
        if (m_receiver != null)
            m_receiver.free();
        m_receiver = null;
        if (m_sender != null)
            m_sender.free();
        m_sender = null;

        if (m_manager != null)
            m_manager.removeMessageQueue(this);

        m_manager = null;
        m_strQueueName = null;
        m_strQueueType = null;
    }
280538
public function free()
    {
        if ($this->ev) {
            $this->ev->free();
            $this->ev = null;
        }
        if (isset($this->upstream)) {
            $this->upstream->freeRequest($this);
            $this->upstream = null;
        }
    }
88655
public void free()
    {
        super.free(); // Do any inherited
        if (m_pDatabase != null)
        {
            this.close();
            m_pDatabase.removePDatabaseOwner(this, true);
        }
        m_pDatabase = null;
    }
655597
public void free()
    {
        this.setCacheMinutes(0);    // Turn off the cache
        Object[] keys = m_htDBList.keySet().toArray();
        for (int i = 0; i < keys.length; i++)
        { 
            Object key = keys[i];
            PDatabase pDatabase = (PDatabase)m_htDBList.get(key);
            pDatabase.free();
        } 
        m_htDBList.clear();
        m_htDBList = null;
    }
1310403
public void free()
    {
        super.free();
        m_baOut = null;
        m_daOut = null;
        m_baIn = null;
        m_daIn = null;
    }
747576
public function cleanup(): void
    {
        foreach ($this->getStore() as $key => $value)
        {
            $this->remove($key);
        }
    }
1278759
public void clear() {
        if (mSize != 0) {
            freeArrays(mHashes, mArray, mSize);
            mHashes = EMPTY_INTS;
            mArray = EMPTY_OBJECTS;
            mSize = 0;
        }
    }
1037832
public void free()
    {
        super.free();
        try {
            if (m_con != null)
                m_con.close();
        } catch (SOAPException ex)  {
            ex.printStackTrace();
        }
    }
1208320
def __cleanup(self):
        
# TODO: Test this.
        with self.__class__.__locker:

            while self.__read_buffer_index > 0:
                del self.__buffers[0]
                self.__read_buffer_index -= 1
67631
public void free()
    {
        if ((m_mapChildHolders != null) && (m_mapChildHolders.size() > 0))
        {
            Utility.getLogger().info("Not all sub-sessions freed by client - I will free them");
            synchronized (this)
            {
                Object[] keys = m_mapChildHolders.keySet().toArray(); // Since these are removed on free
                for (Object strID : keys)
                {
                    BaseHolder baseHolder = (BaseHolder)m_mapChildHolders.get(strID);
                    baseHolder.free();  // Should be removed from collection.
                }
                m_mapChildHolders.clear();
            }
        }
        m_mapChildHolders = null;
        if (m_parentHolder != null)
            m_parentHolder.remove(this);
        m_parentHolder = null;
        m_remoteObject = null;
    }
809231
public void dispose ()
    {
        if (_buffer != null) {
            // if there are sources bound to this buffer, we must wait
            // for them to be unbound
            if (_bound > 0) {
                _state = UNLOADING;
                return;
            }

            // free up our buffer
            _buffer.delete();
            _buffer = null;
            _state = UNLOADED;
        }
    }
805656
def cleanup(self):
        
        if getattr(self._finalizer, "detach", None) and self._finalizer.detach():
            if os.path.exists(self.path):
                try:
                    rmtree(self.path)
                except OSError:
                    pass
                else:
                    self.path = None
829466
public function free(): void
    {
        if ($this->type == self::TYPE_MYSQL_RESULT) {
            $this->object->free();
        } elseif ($this->type == self::TYPE_PGSQL_RESULT) {
            pg_free_result($this->object);
        }

        $this->reset();
    }
786120
void free() {
        if (c4enum != null) {
            synchronized (getDatabase().getLock()) {
                c4enum.close();
            }
            c4enum.free();
            c4enum = null;
        }
    }
1098027
public function removeResources ()
	{

		foreach (array_keys ($this->resources) as $name)
		{
			if (isset ($this->$name))
			{
				unset ($this->$name);
			}
		}

		unset ($this->resources);
		
	}
970479
public void removeAll()
    {
        if (m_aRecords != null)
        {
            for (int iArrayIndex = 0; iArrayIndex < MAX_RECORD_ARRAY_SIZE; iArrayIndex++)
            {   // Free the objects that are no longer used
                this.freeElement(m_aRecords[iArrayIndex]);
                m_aRecords[iArrayIndex] = null;
            }
            m_aRecords = null;
        }
        m_iRecordListStep = 1;
        m_iRecordListEnd = 0;
        m_iRecordListMax = 0; // Current size of the record list (records scanned) (-1 - unknown)
    }
1087081
public void free()
    {
        super.free();
        if (m_gridTable != null)
        {
            m_gridTable.close();
            m_gridTable.free();     // If this file doesn't have a sceen, close it
            m_gridTable = null;
        }
    }