--- psiconv/trunk/lib/psiconv/data.c 2003/11/18 11:25:10 158 +++ psiconv/trunk/lib/psiconv/data.c 2003/11/19 21:04:06 159 @@ -475,9 +475,35 @@ } } +void psiconv_free_object_icon_section(psiconv_object_icon_section section) +{ + if (section) { + if (section->icon_name) + free(section->icon_name); + free(section); + } +} + +void psiconv_free_object_display_section(psiconv_object_display_section section) +{ + if (section) + free(section); +} + +void psiconv_free_object(psiconv_object object) +{ + if (object) { + psiconv_free_object_icon_section(object->icon); + psiconv_free_object_display_section(object->display); + psiconv_free_file(object->object); + free(object); + } +} + void psiconv_free_in_line_layout_aux(void * layout) { psiconv_free_character_layout(((psiconv_in_line_layout) layout)->layout); + psiconv_free_object(((psiconv_in_line_layout) layout)->object); } void psiconv_free_in_line_layout(psiconv_in_line_layout layout)