… | |
… | |
145 | ERROR5: |
145 | ERROR5: |
146 | psiconv_free_clipart_section(clipart); |
146 | psiconv_free_clipart_section(clipart); |
147 | ERROR4: |
147 | ERROR4: |
148 | for (i = 0; i < psiconv_list_length((*result)->sections); i++) { |
148 | for (i = 0; i < psiconv_list_length((*result)->sections); i++) { |
149 | if (!(clipart = psiconv_list_get((*result)->sections,i))) { |
149 | if (!(clipart = psiconv_list_get((*result)->sections,i))) { |
150 | psiconv_error(config,lev+1,off,"Massive memory corruption"); |
150 | psiconv_error(config,lev+1,off,"Data structure corruption"); |
151 | goto ERROR3; |
151 | goto ERROR3; |
152 | } |
152 | } |
153 | psiconv_free_clipart_section(clipart); |
153 | psiconv_free_clipart_section(clipart); |
154 | } |
154 | } |
155 | psiconv_list_free((*result)->sections); |
155 | psiconv_list_free((*result)->sections); |
… | |
… | |
211 | ERROR5: |
211 | ERROR5: |
212 | psiconv_free_paint_data_section(paint); |
212 | psiconv_free_paint_data_section(paint); |
213 | ERROR4: |
213 | ERROR4: |
214 | for (i = 0; i < psiconv_list_length((*result)->sections); i++) { |
214 | for (i = 0; i < psiconv_list_length((*result)->sections); i++) { |
215 | if (!(paint = psiconv_list_get((*result)->sections,i))) { |
215 | if (!(paint = psiconv_list_get((*result)->sections,i))) { |
216 | psiconv_error(config,lev+1,off,"Massive memory corruption"); |
216 | psiconv_error(config,lev+1,off,"Data structure corruption"); |
217 | goto ERROR3; |
217 | goto ERROR3; |
218 | } |
218 | } |
219 | psiconv_free_paint_data_section(paint); |
219 | psiconv_free_paint_data_section(paint); |
220 | } |
220 | } |
221 | psiconv_list_free((*result)->sections); |
221 | psiconv_list_free((*result)->sections); |