… | |
… | |
447 | psiconv_free_style_aux(style); |
447 | psiconv_free_style_aux(style); |
448 | free(style); |
448 | free(style); |
449 | } |
449 | } |
450 | } |
450 | } |
451 | |
451 | |
|
|
452 | void 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 | |
452 | void psiconv_free_word_styles_section(psiconv_word_styles_section styles) |
458 | void 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 | |
462 | void psiconv_free_header_section(psiconv_header_section header) |
467 | void psiconv_free_header_section(psiconv_header_section header) |
… | |
… | |
893 | } |
898 | } |
894 | |
899 | |
895 | void psiconv_free_clipart_section_aux(void *section) |
900 | void 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 | |
901 | void psiconv_free_clipart_section(psiconv_clipart_section section) |
906 | void psiconv_free_clipart_section(psiconv_clipart_section section) |
902 | { |
907 | { |
903 | if (section) { |
908 | if (section) { |