/* Release * release reference */ void NGS_StringRelease ( const NGS_String * self, ctx_t ctx ) { if ( self != NULL ) { NGS_RefcountRelease ( & self -> dad, ctx ); } }
virtual void Release() { if (m_ctx != 0) { if (m_coll != 0) { NGS_RefcountRelease ( ( NGS_Refcount* ) m_coll, m_ctx ); } if (m_read != 0) { NGS_ReadRelease ( m_read, m_ctx ); } if (m_readGroup != 0) { NGS_ReadGroupRelease ( m_readGroup, m_ctx ); } if (m_ref != 0) { NGS_ReferenceRelease ( m_ref, m_ctx ); } m_ctx = 0; // a pointer into the caller's local memory } }