summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-10 18:19:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-11 08:28:14 +0200
commit7c96fc7c8e0c092994d2bf0a553724168742daff (patch)
tree1a60a4a4e4a835abc8ad4c4ee49c6ea3631611d7 /basic
parent86bc13248c1d9f63b10aac304bdf0361d1dcc47f (diff)
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@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/parser.cxx2
1 files changed, 1 insertions, 1 deletions
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();