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 /test | |
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 'test')
-rw-r--r-- | test/dw_lists.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dw_lists.cc b/test/dw_lists.cc index 2d546f63..5558afa1 100644 --- a/test/dw_lists.cc +++ b/test/dw_lists.cc @@ -109,7 +109,7 @@ int main(int argc, char **argv) char buf[16]; sprintf (buf, "%d.", i); - listItem->initWithText (strdup (buf), wordStyle); + listItem->initWithText (buf, wordStyle); for(int j = 0; wordsItem[j]; j++) { if(j != 0) |