1 | /* |
1 | /* |
2 | parse_word.c - Part of psiconv, a PSION 5 file formats converter |
2 | parse_word.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2005 Frodo Looijaard <frodo@frodo.looijaard.name> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
353 | ERROR6: |
353 | ERROR6: |
354 | free(style->name); |
354 | free(style->name); |
355 | ERROR5: |
355 | ERROR5: |
356 | for (j = 0; j < i ;j++) { |
356 | for (j = 0; j < i ;j++) { |
357 | if (!(style = psiconv_list_get((*result)->styles,j))) { |
357 | if (!(style = psiconv_list_get((*result)->styles,j))) { |
358 | psiconv_error(config,lev+1,off,"Massive memory corruption"); |
358 | psiconv_error(config,lev+1,off,"Data structure corruption"); |
359 | goto ERROR4; |
359 | goto ERROR4; |
360 | } |
360 | } |
361 | psiconv_free_character_layout(style->character); |
361 | psiconv_free_character_layout(style->character); |
362 | psiconv_free_paragraph_layout(style->paragraph); |
362 | psiconv_free_paragraph_layout(style->paragraph); |
363 | free(style->name); |
363 | free(style->name); |