… | |
… | |
112 | goto ERROR3; |
112 | goto ERROR3; |
113 | for (i = 0; i < psiconv_list_length(table); i ++) { |
113 | for (i = 0; i < psiconv_list_length(table); i ++) { |
114 | if (!(entry = psiconv_list_get(table,i))) |
114 | if (!(entry = psiconv_list_get(table,i))) |
115 | goto ERROR4; |
115 | goto ERROR4; |
116 | psiconv_progress(lev+3,off,"Going to read clipart section %i",i); |
116 | psiconv_progress(lev+3,off,"Going to read clipart section %i",i); |
117 | if (!(psiconv_parse_clipart_section(buf,lev+3,*entry,NULL,&clipart))) |
117 | if ((res = psiconv_parse_clipart_section(buf,lev+3,*entry,NULL,&clipart))) |
118 | goto ERROR4; |
118 | goto ERROR4; |
119 | if (!(psiconv_list_add((*result)->sections,clipart))) |
119 | if ((res = psiconv_list_add((*result)->sections,clipart))) |
120 | goto ERROR5; |
120 | goto ERROR5; |
121 | } |
121 | } |
122 | |
122 | |
123 | psiconv_free_jumptable_section(table); |
123 | psiconv_free_jumptable_section(table); |
124 | psiconv_progress(lev+1,off,"End of clipart file"); |
124 | psiconv_progress(lev+1,off,"End of clipart file"); |
… | |
… | |
644 | |
644 | |
645 | psiconv_free_application_id_section(appl_id); |
645 | psiconv_free_application_id_section(appl_id); |
646 | psiconv_free_section_table_section(table); |
646 | psiconv_free_section_table_section(table); |
647 | |
647 | |
648 | psiconv_progress(lev+1,off,"End of word file"); |
648 | psiconv_progress(lev+1,off,"End of word file"); |
649 | return res; |
649 | return 0; |
650 | |
650 | |
651 | |
651 | |
652 | ERROR8: |
652 | ERROR8: |
653 | psiconv_free_text_and_layout((*result)->paragraphs); |
653 | psiconv_free_text_and_layout((*result)->paragraphs); |
654 | ERROR7: |
654 | ERROR7: |