Ejemplo n.º 1
0
/* Release
 *  release reference
 */
void NGS_StringRelease ( const NGS_String * self, ctx_t ctx )
{
    if ( self != NULL )
    {
        NGS_RefcountRelease ( & self -> dad, ctx );
    }
}
Ejemplo n.º 2
0
 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
     }
 }