[Libreoffice-commits] core.git: basic/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Mon May 11 06:28:49 UTC 2020
basic/source/comp/parser.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7c96fc7c8e0c092994d2bf0a553724168742daff
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sun May 10 18:19:20 2020 +0200
Commit: Noel Grandin <noel.grandin at 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.grandin at 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();
More information about the Libreoffice-commits
mailing list