From 8d23bb6e0bf9bc32d9be7f92df4abdb68e3a7c70 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 26 Jan 2009 22:46:07 +0100 Subject: don't strdup() text passed to ListItem::initWithText() Memory allocation for text is done within Textblock itself (noticed by Jeremy). --- src/html.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3