diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-10 18:19:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-11 08:28:14 +0200 |
commit | 7c96fc7c8e0c092994d2bf0a553724168742daff (patch) | |
tree | 1a60a4a4e4a835abc8ad4c4ee49c6ea3631611d7 /basic/source/comp | |
parent | 86bc13248c1d9f63b10aac304bdf0361d1dcc47f (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/source/comp')
-rw-r--r-- | basic/source/comp/parser.cxx | 2 |
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(); |