Fix 12552 fp_TextRun::itemize() leak memory
Bug report and Patch from Obin Hickory. Thanks very much!
Modified: abiword/trunk/src/text/fmt/xp/fp_TextRun.cpp
===================================================================
--- abiword/trunk/src/text/fmt/xp/fp_TextRun.cpp 2009-12-17
22:09:00 UTC (rev 28572)
+++ abiword/trunk/src/text/fmt/xp/fp_TextRun.cpp 2009-12-19
00:44:28 UTC (rev 28573)
@@ -2839,7 +2839,7 @@
//
// Should only be one item per run
//
- GR_Item * pItem = I.getNthItem(0)->makeCopy();
+ GR_Item * pItem = I.getNthItem(0);
UT_return_if_fail(pItem);
setItem(pItem->makeCopy());
}
Received on Sat Dec 19 01:46:12 2009
This archive was generated by hypermail 2.1.8 : Sat Dec 19 2009 - 01:46:12 CET