diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-25 09:50:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-25 16:12:08 +0100 |
commit | 3ab0cc2ebf3800252a62e9891ac4202cda1a20c1 (patch) | |
tree | ca0711c22f238a82602997bd5049936375ef66b7 /cui/source | |
parent | 98c13c869df65ee375a9e90ce9fb35097e95cebc (diff) |
fix leak
Change-Id: I486fad57766c1314fde7c580fd06b2c5d225241a
Reviewed-on: https://gerrit.libreoffice.org/83649
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/customize/CustomNotebookbarGenerator.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
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; |