/* Free a mime message */ void attachments_free(attachments_t * message) { part_t *tmp, *part; if (message == NULL) return; part = message->parts; while (part) { tmp = part->next; part_free(part); part = tmp; } if (message->root_part) part_free(message->root_part); /* TODO (#1#): HERE IS A BUG!!!! */ free(message); }
static int null_enter(struct state *st, struct state *prev) { hud_free(); gui_free(); geom_free(); item_free(); ball_free(); shad_free(); part_free(); return 0; }
void gaim_mime_document_free(GaimMimeDocument *doc) { 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); }
void *partTemplateGen(char *directory, float scale) { int count, i; part part_t; char filePath[100]; FILE *tfp, *ifp; strcpy(filePath, directory); strcat(filePath, "/partTemplate.tbl"); ifp = fopen(partEncFilePath, "r"); tfp = fopen(filePath, "w"); count = PARTMAX*scale; for (i=0; i<count; i++) { readPart(&part_t, ifp); printPartTemplate(&part_t, tfp); part_free(&part_t); } fclose(ifp); fclose(tfp); }