/[public]/psiconv/trunk/lib/psiconv/data.c
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/data.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 41 Revision 42
32static psiconv_all_tabs clone_all_tabs(psiconv_all_tabs all_tabs); 32static psiconv_all_tabs clone_all_tabs(psiconv_all_tabs all_tabs);
33static void psiconv_free_style_aux(void *style); 33static void psiconv_free_style_aux(void *style);
34static void psiconv_free_in_line_layout_aux(void * layout); 34static void psiconv_free_in_line_layout_aux(void * layout);
35static void psiconv_free_paragraph_aux(void * paragraph); 35static void psiconv_free_paragraph_aux(void * paragraph);
36static void psiconv_free_paint_data_section_aux(void * section); 36static void psiconv_free_paint_data_section_aux(void * section);
37static void psiconv_free_clipart_section_aux(psiconv_clipart_section section); 37static void psiconv_free_clipart_section_aux(void * section);
38 38
39psiconv_character_layout psiconv_basic_character_layout(void) 39psiconv_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
487void psiconv_free_mbm_jumptable_section (psiconv_mbm_jumptable_section section) 487void 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
517void psiconv_free_clipart_section_aux(psiconv_clipart_section section) 517void 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
523void psiconv_free_clipart_section(psiconv_clipart_section section) 523void 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}

Legend:
Removed from v.41  
changed lines
  Added in v.42

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26