cui/source/customize/CustomNotebookbarGenerator.cxx | 2 -- 1 file changed, 2 deletions(-)
New commits: commit 3ab0cc2ebf3800252a62e9891ac4202cda1a20c1 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Nov 25 09:50:03 2019 +0000 Commit: Caolán McNamara <caol...@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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits