l10ntools/source/treemerge.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 931043ab318ddb977e6943ad0b69443a2757ae7f Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Apr 11 12:23:30 2014 +0200 Memory released through xmlFreeDoc should be acquired with xmlMalloc Change-Id: I70db57257fa8226d9f18b7d970d85cc1769252ad diff --git a/l10ntools/source/treemerge.cxx b/l10ntools/source/treemerge.cxx index 06e93d7..f2e959f 100644 --- a/l10ntools/source/treemerge.cxx +++ b/l10ntools/source/treemerge.cxx @@ -213,7 +213,7 @@ TreeParser::TreeParser( } if( !m_pSource->name ) { - m_pSource->name = new char[strlen(rInputFile.getStr())+1]; + m_pSource->name = static_cast<char *>(xmlMalloc(strlen(rInputFile.getStr())+1)); strcpy( m_pSource->name, rInputFile.getStr() ); } m_bIsInitialized = true; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits