/* INPUT : osip_accept_encoding_t *accept_encoding | accept_encoding. */
void osip_accept_encoding_free(osip_accept_encoding_t * accept_encoding)
{
	if (accept_encoding == NULL)
		return;
	osip_free(accept_encoding->element);

	osip_generic_param_freelist(&accept_encoding->gen_params);

	accept_encoding->element = NULL;
	osip_free(accept_encoding);
}
/* INPUT : osip_call_info_t *call_info | call_info. */
void
osip_call_info_free (osip_call_info_t * call_info)
{
  if (call_info == NULL)
    return;
  osip_free (call_info->element);

  osip_generic_param_freelist (&call_info->gen_params);

  call_info->element = NULL;

  osip_free (call_info);
}
Exemplo n.º 3
0
void
osip_via_free (osip_via_t * via)
{
  if (via == NULL)
    return;
  osip_free (via->version);
  osip_free (via->protocol);
  osip_free (via->host);
  osip_free (via->port);
  osip_free (via->comment);
  osip_generic_param_freelist (via->via_params);

  osip_free (via);
}
Exemplo n.º 4
0
/* INPUT : osip_content_type_t *content_type | content_type. */
void osip_content_type_free(osip_content_type_t * content_type)
{
	if (content_type == NULL)
		return;
	osip_free(content_type->type);
	osip_free(content_type->subtype);

	osip_generic_param_freelist(&content_type->gen_params);

	content_type->type = NULL;
	content_type->subtype = NULL;

	osip_free(content_type);
}
Exemplo n.º 5
0
/* INPUT : osip_from_t *from | from. */
void
osip_from_free (osip_from_t * from)
{
  if (from == NULL)
    return;
  if (from->url != NULL)
    {
      osip_uri_free (from->url);
    }
  osip_free (from->displayname);

  osip_generic_param_freelist (&from->gen_params);

  osip_free (from);
}