/** * Free the dependent object. */ public void freeDependent() { if (m_recDependent != null) // If close and file is still open if (!m_recDependent.isInFree()) { this.setDependentListener(null); // In case you want to delete me! if (m_recDependent != null) { if (m_bCloseOnFree) m_recDependent.close(); // File is still open, and my listener is still there, close it! else m_recDependent.free(); // File is still open, and my listener is still there, close it! } } m_recDependent = null; if (m_freeable != null) m_freeable.free(); m_freeable = null; } }
/** * Free the dependent object. */ public void freeDependent() { if (m_recDependent != null) // If close and file is still open if (!m_recDependent.isInFree()) { this.setDependentListener(null); // In case you want to delete me! if (m_recDependent != null) { if (m_bCloseOnFree) m_recDependent.close(); // File is still open, and my listener is still there, close it! else m_recDependent.free(); // File is still open, and my listener is still there, close it! } } m_recDependent = null; if (m_freeable != null) m_freeable.free(); m_freeable = null; } }
/** * Free the dependent object. */ public void freeDependent() { if (m_recDependent != null) // If close and file is still open if (!m_recDependent.isInFree()) { this.setDependentListener(null); // In case you want to delete me! if (m_recDependent != null) { if (m_bCloseOnFree) m_recDependent.close(); // File is still open, and my listener is still there, close it! else m_recDependent.free(); // File is still open, and my listener is still there, close it! } } m_recDependent = null; if (m_freeable != null) m_freeable.free(); m_freeable = null; } }