[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - cui/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 25 12:57:59 UTC 2019
cui/source/customize/CustomNotebookbarGenerator.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 23229bb9e89076576da0708d27358c2a64ed0c73
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 13:57:16 2019 +0100
fix leak
Change-Id: I486fad57766c1314fde7c580fd06b2c5d225241a
Reviewed-on: https://gerrit.libreoffice.org/83650
Tested-by: Jenkins
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 f19e4c9f3c06..aa3a03a508cd 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