https://bugs.freedesktop.org/show_bug.cgi?id=77509
--- Comment #9 from Julien Nabet <[email protected]> --- Looking at Valgrind trace, I noticed this part void lcl_AddString<unsigned long>(rtl::OUString*&, unsigned long&, rtl::OUString const&) (consoli.cxx:80) which appears several times. 72 template< typename T > 73 static void lcl_AddString( OUString*& pData, T& nCount, const OUString& rInsert ) 74 { 75 OUString* pOldData = pData; 76 pData = new OUString[ nCount+1 ]; 77 if (pOldData) 78 { 79 memcpy( pData, pOldData, nCount * sizeof(OUString) ); 80 delete[] pOldData; 81 } 82 pData[nCount] = rInsert; 83 ++nCount; 84 } (see http://opengrok.libreoffice.org/xref/core/sc/source/core/tool/consoli.cxx#72) I noticed this other lcl_AddString here: http://opengrok.libreoffice.org/xref/core/svtools/source/config/extcolorcfg.cxx#238 Of course, this one doesn't use template but anyway, the first method is called at 3 places with the same type (SCSIZE), see http://opengrok.libreoffice.org/search?q=lcl_AddString&project=core&defs=&refs=&path=&hist= Should the first one removed so the second one only would be used? -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
