… | |
… | |
32 | static psiconv_all_tabs clone_all_tabs(psiconv_all_tabs all_tabs); |
32 | static psiconv_all_tabs clone_all_tabs(psiconv_all_tabs all_tabs); |
33 | static void psiconv_free_style_aux(void *style); |
33 | static void psiconv_free_style_aux(void *style); |
34 | static void psiconv_free_in_line_layout_aux(void * layout); |
34 | static void psiconv_free_in_line_layout_aux(void * layout); |
35 | static void psiconv_free_paragraph_aux(void * paragraph); |
35 | static void psiconv_free_paragraph_aux(void * paragraph); |
36 | static void psiconv_free_paint_data_section_aux(void * section); |
36 | static void psiconv_free_paint_data_section_aux(void * section); |
37 | static void psiconv_free_clipart_section_aux(psiconv_clipart_section section); |
37 | static void psiconv_free_clipart_section_aux(void * section); |
38 | |
38 | |
39 | psiconv_character_layout psiconv_basic_character_layout(void) |
39 | psiconv_character_layout psiconv_basic_character_layout(void) |
40 | { |
40 | { |
41 | /* Make the structures static, to oblige IRIX */ |
41 | /* Make the structures static, to oblige IRIX */ |
42 | static struct psiconv_color black = |
42 | static struct psiconv_color black = |
… | |
… | |
482 | { |
482 | { |
483 | if (section) |
483 | if (section) |
484 | psiconv_list_free_el(section,&psiconv_free_paint_data_section_aux); |
484 | psiconv_list_free_el(section,&psiconv_free_paint_data_section_aux); |
485 | } |
485 | } |
486 | |
486 | |
487 | void psiconv_free_mbm_jumptable_section (psiconv_mbm_jumptable_section section) |
487 | void psiconv_free_jumptable_section (psiconv_jumptable_section section) |
488 | { |
488 | { |
489 | if (section) |
489 | if (section) |
490 | psiconv_list_free(section); |
490 | psiconv_list_free(section); |
491 | } |
491 | } |
492 | |
492 | |
… | |
… | |
512 | psiconv_free_sketch_section(file->sketch_sec); |
512 | psiconv_free_sketch_section(file->sketch_sec); |
513 | free(file); |
513 | free(file); |
514 | } |
514 | } |
515 | } |
515 | } |
516 | |
516 | |
517 | void psiconv_free_clipart_section_aux(psiconv_clipart_section section) |
517 | void psiconv_free_clipart_section_aux(void *section) |
518 | { |
518 | { |
519 | if (section) |
519 | if (section) |
520 | free(section->picture); |
520 | free(((psiconv_clipart_section ) section)->picture); |
521 | } |
521 | } |
522 | |
522 | |
523 | void psiconv_free_clipart_section(psiconv_clipart_section section) |
523 | void psiconv_free_clipart_section(psiconv_clipart_section section) |
524 | { |
524 | { |
525 | if (section) { |
525 | if (section) { |
… | |
… | |
552 | else if (file->type == psiconv_mbm_file) |
552 | else if (file->type == psiconv_mbm_file) |
553 | psiconv_free_mbm_f((psiconv_mbm_f) file->file); |
553 | psiconv_free_mbm_f((psiconv_mbm_f) file->file); |
554 | else if (file->type == psiconv_sketch_file) |
554 | else if (file->type == psiconv_sketch_file) |
555 | psiconv_free_sketch_f((psiconv_sketch_f) file->file); |
555 | psiconv_free_sketch_f((psiconv_sketch_f) file->file); |
556 | else if (file->type == psiconv_clipart_file) |
556 | else if (file->type == psiconv_clipart_file) |
557 | psiconv_free_sketch_f((psiconv_clipart_f) file->file); |
557 | psiconv_free_clipart_f((psiconv_clipart_f) file->file); |
558 | free(file); |
558 | free(file); |
559 | } |
559 | } |
560 | } |
560 | } |