diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-05 15:51:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-08 07:37:26 +0100 |
commit | 04e7a34a19b3658de57c4f2b3b0fa8445b01f199 (patch) | |
tree | 7c7c85944d8172033d58c626b44df6f735e0bc38 /accessibility | |
parent | 72841008bf422dfd8553240b3a78f0474d03523c (diff) |
loplugin:refcounting check for one more case
where we might be holding something newly created by pointer
instead of by *::Reference
Change-Id: Ife6f7acae4252bf56dcdeb95d72e43c523444f97
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112138
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/vclxaccessibletoolbox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accessibility/source/standard/vclxaccessibletoolbox.cxx b/accessibility/source/standard/vclxaccessibletoolbox.cxx index acd2c4f18899..a04685730c85 100644 --- a/accessibility/source/standard/vclxaccessibletoolbox.cxx +++ b/accessibility/source/standard/vclxaccessibletoolbox.cxx @@ -593,8 +593,8 @@ void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindow if ( pWin && pWin->GetParent() && pWin->GetParent()->GetType() == WindowType::TOOLBOX ) { - VCLXAccessibleToolBox* pParent = static_cast< VCLXAccessibleToolBox* >( - pWin->GetParent()->GetAccessible()->getAccessibleContext().get() ); + auto pParentAccContext = pWin->GetParent()->GetAccessible()->getAccessibleContext(); + VCLXAccessibleToolBox* pParent = static_cast< VCLXAccessibleToolBox* >( pParentAccContext.get() ); if ( pParent ) pParent->ReleaseSubToolBox(static_cast<ToolBox *>(pWin.get())); } |