… | |
… | |
21 | #include "compat.h" |
21 | #include "compat.h" |
22 | #include <stdlib.h> |
22 | #include <stdlib.h> |
23 | #include <string.h> |
23 | #include <string.h> |
24 | #include "data.h" |
24 | #include "data.h" |
25 | #include "list.h" |
25 | #include "list.h" |
|
|
26 | |
|
|
27 | #ifdef DMALLOC |
|
|
28 | #include <dmalloc.h> |
|
|
29 | #endif |
26 | |
30 | |
27 | static psiconv_color clone_color(psiconv_color color); |
31 | static psiconv_color clone_color(psiconv_color color); |
28 | static psiconv_font clone_font(psiconv_font font); |
32 | static psiconv_font clone_font(psiconv_font font); |
29 | static psiconv_border clone_border(psiconv_border border); |
33 | static psiconv_border clone_border(psiconv_border border); |
30 | static psiconv_bullet clone_bullet(psiconv_bullet bullet); |
34 | static psiconv_bullet clone_bullet(psiconv_bullet bullet); |
… | |
… | |
438 | { |
442 | { |
439 | if (styles) { |
443 | if (styles) { |
440 | psiconv_free_word_style(styles->normal); |
444 | psiconv_free_word_style(styles->normal); |
441 | if (styles->styles) |
445 | if (styles->styles) |
442 | psiconv_list_free_el(styles->styles,psiconv_free_style_aux); |
446 | psiconv_list_free_el(styles->styles,psiconv_free_style_aux); |
|
|
447 | free(styles); |
443 | } |
448 | } |
444 | } |
449 | } |
445 | |
450 | |
446 | void psiconv_free_header_section(psiconv_header_section header) |
451 | void psiconv_free_header_section(psiconv_header_section header) |
447 | { |
452 | { |