src/mess/tools/messdocs/messdocs.c
| r6391 | r6392 | |
| 595 | 595 | fprintf(state.chm_toc, "</BODY></HTML>"); |
| 596 | 596 | fclose(state.chm_toc); |
| 597 | 597 | |
| 598 | | |
| 599 | 598 | /* create the help project file */ |
| 600 | 599 | s = pool_malloc(state.pool, strlen(dest_dir) + 1 + strlen(help_project_filename) + 1); |
| 601 | 600 | if (!s) |
| r6391 | r6392 | |
| 621 | 620 | |
| 622 | 621 | /* finish up */ |
| 623 | 622 | XML_ParserFree(state.parser); |
| 623 | fclose(in); |
| 624 | 624 | pool_free(state.pool); |
| 625 | 625 | return state.error ? -1 : 0; |
| 626 | 626 | |
| 627 | 627 | outofmemory: |
| 628 | 628 | fprintf(stderr, "Out of memory"); |
| 629 | 629 | error: |
| 630 | if (state.chm_toc) fclose(state.chm_toc); |
| 631 | if (in) fclose(in); |
| 630 | 632 | return -1; |
| 631 | 633 | } |
| 632 | 634 | |