/[public]/psiconv/tags/rel-0-9-9/lib/psiconv/data.c
ViewVC logotype

Diff of /psiconv/tags/rel-0-9-9/lib/psiconv/data.c

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

Revision 184 Revision 240
1/* 1/*
2 data.c - Part of psiconv, a PSION 5 file formats converter 2 data.c - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
447 psiconv_free_style_aux(style); 447 psiconv_free_style_aux(style);
448 free(style); 448 free(style);
449 } 449 }
450} 450}
451 451
452void psiconv_free_word_style_list(psiconv_word_style_list style_list)
453{
454 if (style_list)
455 psiconv_list_free_el(style_list,psiconv_free_style_aux);
456}
457
452void psiconv_free_word_styles_section(psiconv_word_styles_section styles) 458void psiconv_free_word_styles_section(psiconv_word_styles_section styles)
453{ 459{
454 if (styles) { 460 if (styles) {
455 psiconv_free_word_style(styles->normal); 461 psiconv_free_word_style(styles->normal);
456 if (styles->styles) 462 psiconv_free_word_style_list(styles->styles);
457 psiconv_list_free_el(styles->styles,psiconv_free_style_aux);
458 free(styles); 463 free(styles);
459 } 464 }
460} 465}
461 466
462void psiconv_free_header_section(psiconv_header_section header) 467void psiconv_free_header_section(psiconv_header_section header)
893} 898}
894 899
895void psiconv_free_clipart_section_aux(void *section) 900void psiconv_free_clipart_section_aux(void *section)
896{ 901{
897 if (section) 902 if (section)
898 free(((psiconv_clipart_section ) section)->picture); 903 psiconv_free_paint_data_section(((psiconv_clipart_section) section)->picture);
899} 904}
900 905
901void psiconv_free_clipart_section(psiconv_clipart_section section) 906void psiconv_free_clipart_section(psiconv_clipart_section section)
902{ 907{
903 if (section) { 908 if (section) {

Legend:
Removed from v.184  
changed lines
  Added in v.240

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