[Libreoffice-commits] core.git: cui/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 25 15:13:07 UTC 2019
cui/source/customize/CustomNotebookbarGenerator.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 3ab0cc2ebf3800252a62e9891ac4202cda1a20c1
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Nov 25 09:50:03 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Nov 25 16:12:08 2019 +0100
fix leak
Change-Id: I486fad57766c1314fde7c580fd06b2c5d225241a
Reviewed-on: https://gerrit.libreoffice.org/83649
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/cui/source/customize/CustomNotebookbarGenerator.cxx b/cui/source/customize/CustomNotebookbarGenerator.cxx
index 3bca1f68e283..d8e597f90f1e 100644
--- a/cui/source/customize/CustomNotebookbarGenerator.cxx
+++ b/cui/source/customize/CustomNotebookbarGenerator.cxx
@@ -30,7 +30,6 @@
#include <unotools/confignode.hxx>
#include <libxml/parser.h>
-#define aUIItemIDLength 255
#define aUIPropertiesCount 3
using namespace css;
@@ -197,7 +196,6 @@ void CustomNotebookbarGenerator::modifyCustomizedUIFile(const Sequence<OUString>
{
int nIdx = int(aIndex);
sal_Int32 rPos = aIndex;
- pProperties[nIdx] = new char[aUIItemIDLength];
pProperties[nIdx] = convertToCharPointer(aValue.getToken(rPos, ',', rPos));
}
xmlDocPtr doc;
More information about the Libreoffice-commits
mailing list