diff options
| author | Simon Tatham <anakin@pobox.com> | 2002-09-03 09:26:58 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2002-09-03 09:26:58 +0000 |
| commit | 231259df4aaef127e3d409b7fedd52ba79cdb656 (patch) | |
| tree | 811f1f609cbfadf05bea5aa1a7703d0401fb6034 /bk_xhtml.c | |
| parent | be179670d9d2703e433869d689bd30251c6ddb72 (diff) | |
| download | halibut-231259df4aaef127e3d409b7fedd52ba79cdb656.zip halibut-231259df4aaef127e3d409b7fedd52ba79cdb656.tar.gz halibut-231259df4aaef127e3d409b7fedd52ba79cdb656.tar.bz2 halibut-231259df4aaef127e3d409b7fedd52ba79cdb656.tar.xz | |
Of course, when I start freeing things in response to valgrind's
complaints, it would probably help if I arranged that those things
had been _allocated_ in all cases, otherwise we merely exchange a
memory leak for a core dump. Duh.
[originally from svn r1916]
Diffstat (limited to 'bk_xhtml.c')
| -rw-r--r-- | bk_xhtml.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -199,7 +199,7 @@ static xhtmlconfig xhtml_configure(paragraph *source) } else if (!ustricmp(source->keyword, L"xhtml-chapter-numeric")) { ret.fchapter.just_numbers = utob(uadv(source->keyword)); } else if (!ustricmp(source->keyword, L"xhtml-chapter-suffix")) { - ret.fchapter.number_suffix = uadv(source->keyword); + ret.fchapter.number_suffix = ustrdup(uadv(source->keyword)); } else if (!ustricmp(source->keyword, L"xhtml-section-numeric")) { wchar_t *p = uadv(source->keyword); int n = 0; @@ -229,7 +229,7 @@ static xhtmlconfig xhtml_configure(paragraph *source) ret.fsect[i] = ret.fsect[ret.nfsect-1]; ret.nfsect = n+1; } - ret.fsect[n].number_suffix = p; + ret.fsect[n].number_suffix = ustrdup(p); } } } |