Logo Search packages:      
Sourcecode: gaim-meanwhile version File versions  Download package

void gaim_mime_document_free ( GaimMimeDocument doc  ) 

Frees memory used in a MIME document and all of its parts and fields

Parameters:
doc the MIME document to free

Definition at line 511 of file mime.c.

                                                    {
  if(! doc) return;

  fields_destroy(&doc->fields);

  while(doc->parts) {
    part_free(doc->parts->data);
    doc->parts = g_list_delete_link(doc->parts, doc->parts);
  }

  g_free(doc);
}


Generated by  Doxygen 1.6.0   Back to index