diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-26 22:46:07 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-26 22:46:07 +0100 |
commit | 8d23bb6e0bf9bc32d9be7f92df4abdb68e3a7c70 (patch) | |
tree | ccf3104d5faf1978f7b046668257e65884a0f605 /src | |
parent | 307159fdc7edda9d12a174ebc7d3e0e5480aed4f (diff) |
don't strdup() text passed to ListItem::initWithText()
Memory allocation for text is done within Textblock itself
(noticed by Jeremy).
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc index a371c621..f5c10e33 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2566,7 +2566,7 @@ static void Html_tag_open_li(DilloHtml *html, const char *tag, int tagsize) *list_number = 0; } numtostr((*list_number)++, buf, 16, style->listStyleType); - list_item->initWithText (dStrdup(buf), wordStyle); + list_item->initWithText (buf, wordStyle); list_item->addSpace (wordStyle); html->PrevWasSPC = true; } else { |