basic/source/comp/parser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7c96fc7c8e0c092994d2bf0a553724168742daff Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Sun May 10 18:19:20 2020 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon May 11 08:28:14 2020 +0200 fix leak in basic Change-Id: I9971a824b98193e7d6f926208a4bb9bfe92d5b43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93935 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index c2b6329e44eb..d26f4de63fc7 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -596,7 +596,7 @@ void SbiParser::Set() if( eTok == NEW ) { Next(); - SbiSymDef* pTypeDef = new SbiSymDef( OUString() ); + auto pTypeDef = std::make_unique<SbiSymDef>( OUString() ); TypeDecl( *pTypeDef, true ); aLvalue.Gen(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits