diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-24 13:01:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-24 14:20:37 +0200 |
commit | a68c96f63be186a3319b8266318e21c9b9f73b9c (patch) | |
tree | b33b16ceacd74a2479ef26639c4bf9d238c2aea0 /sfx2 | |
parent | 004ddb8fdb7baca7cd2e43ebd21bc7c957f35895 (diff) |
fix leak in SfxTabDialogController
Change-Id: I98a459d0b6173d367bbe596bcbf25501612ff032
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116051
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 47fa332390db..02c46e96ecb3 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -897,7 +897,8 @@ void SfxTabDialogController::AddTabPage(const OString &rName, const OUString& rR SfxItemSet* SfxTabDialogController::CreateInputItemSet(const OString&) { SAL_WARN( "sfx.dialog", "CreateInputItemSet not implemented" ); - return new SfxAllItemSet(SfxGetpApp()->GetPool()); + m_xItemSet = std::make_unique<SfxAllItemSet>(SfxGetpApp()->GetPool()); + return m_xItemSet.get(); } void SfxTabDialogController::CreatePages() |