/[public]/psiconv/trunk/lib/psiconv/parse_word.c
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/parse_word.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 183 Revision 184
159 return 0; 159 return 0;
160 160
161ERROR2: 161ERROR2:
162 free (*result); 162 free (*result);
163ERROR1: 163ERROR1:
164 psiconv_warn(config,lev+1,off,"Reading of Word Status Section failed"); 164 psiconv_error(config,lev+1,off,"Reading of Word Status Section failed");
165 if (length) 165 if (length)
166 *length = 0; 166 *length = 0;
167 if (!res) 167 if (!res)
168 return -PSICONV_E_NOMEM; 168 return -PSICONV_E_NOMEM;
169 else 169 else
375ERROR6: 375ERROR6:
376 free(style->name); 376 free(style->name);
377ERROR5: 377ERROR5:
378 for (j = 0; j < i ;j++) { 378 for (j = 0; j < i ;j++) {
379 if (!(style = psiconv_list_get((*result)->styles,j))) { 379 if (!(style = psiconv_list_get((*result)->styles,j))) {
380 psiconv_warn(config,lev+1,off,"Massive memory corruption"); 380 psiconv_error(config,lev+1,off,"Massive memory corruption");
381 goto ERROR4; 381 goto ERROR4;
382 } 382 }
383 psiconv_free_character_layout(style->character); 383 psiconv_free_character_layout(style->character);
384 psiconv_free_paragraph_layout(style->paragraph); 384 psiconv_free_paragraph_layout(style->paragraph);
385 free(style->name); 385 free(style->name);
389ERROR3: 389ERROR3:
390 psiconv_free_word_style((*result)->normal); 390 psiconv_free_word_style((*result)->normal);
391ERROR2: 391ERROR2:
392 free (*result); 392 free (*result);
393ERROR1: 393ERROR1:
394 psiconv_warn(config,lev+1,off,"Reading of Word Status Section failed"); 394 psiconv_error(config,lev+1,off,"Reading of Word Status Section failed");
395 if (length) 395 if (length)
396 *length = 0; 396 *length = 0;
397 if (!res) 397 if (!res)
398 return -PSICONV_E_NOMEM; 398 return -PSICONV_E_NOMEM;
399 else 399 else

Legend:
Removed from v.183  
changed lines
  Added in v.184

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26