Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Mon, 2010-11-22 at 10:30 -0500, Kevin Hunter wrote:
Hullo List,

Minor memory leak (but a leak nonetheless), found thanks to cppcheck and 
Jesse's appreciated webpage.

Emm, I'm unconvinced its a memory leak. Its given to maLookupTable and
in lcl_LookupTableHelper::~lcl_LookupTableHelper its always released,
no ?

Specifically I think cppcheck is confused by

maLookupTable.push_back(pNewItem = new
LocaleDataLookupTableItem(aLibTable[i].pLib, module,
aLibTable[i].pLocale ));

and that

LocaleDataLookupTableItem* pNewItem = new
LocaleDataLookupTableItem(aLibTable[i].pLib, module,
aLibTable[i].pLocale );
maLookupTable.push_back( pNewItem );

is sufficient to un-confuse it.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.