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_text.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_text.c')
| -rw-r--r-- | bk_text.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -96,7 +96,7 @@ static textconfig text_configure(paragraph *source) { } else if (!ustricmp(source->keyword, L"text-chapter-numeric")) { ret.achapter.just_numbers = utob(uadv(source->keyword)); } else if (!ustricmp(source->keyword, L"text-chapter-suffix")) { - ret.achapter.number_suffix = uadv(source->keyword); + ret.achapter.number_suffix = ustrdup(uadv(source->keyword)); } else if (!ustricmp(source->keyword, L"text-section-align")) { wchar_t *p = uadv(source->keyword); int n = 0; @@ -156,7 +156,7 @@ static textconfig text_configure(paragraph *source) { ret.asect[i] = ret.asect[ret.nasect-1]; ret.nasect = n+1; } - ret.asect[n].number_suffix = p; + ret.asect[n].number_suffix = ustrdup(p); } else if (!ustricmp(source->keyword, L"text-title-align")) { ret.atitle.align = utoalign(uadv(source->keyword)); } else if (!ustricmp(source->keyword, L"text-title-underline")) { |