--- psiconv/trunk/lib/psiconv/data.c 2004/03/04 21:55:40 239 +++ psiconv/trunk/lib/psiconv/data.c 2004/03/08 23:20:41 240 @@ -449,12 +449,17 @@ } } +void psiconv_free_word_style_list(psiconv_word_style_list style_list) +{ + if (style_list) + psiconv_list_free_el(style_list,psiconv_free_style_aux); +} + void psiconv_free_word_styles_section(psiconv_word_styles_section styles) { if (styles) { psiconv_free_word_style(styles->normal); - if (styles->styles) - psiconv_list_free_el(styles->styles,psiconv_free_style_aux); + psiconv_free_word_style_list(styles->styles); free(styles); } }