librnr/uri.c
void UriDelete(Uri_T *pUri)
{
  if( pUri == NULL )
  {
    return;
  }

  if( pUri->m_sScheme != NULL )
  {
    delete(pUri->m_sScheme);
  }

  if( pUri->m_sUserInfo != NULL )
  {
    delete(pUri->m_sUserInfo);
  }

  if( pUri->m_sHostName != NULL )
  {
    delete(pUri->m_sHostName);
  }

  if( pUri->m_sPath != NULL )
  {
    delete(pUri->m_sPath);
  }

  if( pUri->m_sQuery != NULL )
  {
    delete(pUri->m_sQuery);
  }

  delete(pUri);
}
/*!
 * \brief Delete the URI compenent structure.
 *
 * \param pUri    Pointer to allocated Uri_T.
 */
\brief Delete the URI compenent structure.
\param pUri    Pointer to allocated Uri_T.
\ brief Delete the URI compenent structure . \ param pUri Pointer to allocated Uri_T .
void UriDelete(Uri_T *pUri)
{
  if( pUri == NULL )
  {
    return;
  }
  if( pUri->m_sScheme != NULL )
  {
    delete(pUri->m_sScheme);
  }
  if( pUri->m_sUserInfo != NULL )
  {
    delete(pUri->m_sUserInfo);
  }
  if( pUri->m_sHostName != NULL )
  {
    delete(pUri->m_sHostName);
  }
  if( pUri->m_sPath != NULL )
  {
    delete(pUri->m_sPath);
  }
  if( pUri->m_sQuery != NULL )
  {
    delete(pUri->m_sQuery);
  }
  delete(pUri);
}
void UriDelete ( Uri_T * pUri ) { if ( pUri == NULL ) { return ; } if ( pUri -> m_sScheme != NULL ) { delete ( pUri -> m_sScheme ) ; } if ( pUri -> m_sUserInfo != NULL ) { delete ( pUri -> m_sUserInfo ) ; } if ( pUri -> m_sHostName != NULL ) { delete ( pUri -> m_sHostName ) ; } if ( pUri -> m_sPath != NULL ) { delete ( pUri -> m_sPath ) ; } if ( pUri -> m_sQuery != NULL ) { delete ( pUri -> m_sQuery ) ; } delete ( pUri ) ; }
\brief Delete the URI compenent structure.
\ brief Delete the URI compenent structure .