summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-10-07 17:13:59 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-10-07 17:18:54 +0100
commitc8a795c9a0cc542f008166109528d4257afe2851 (patch)
treedb33d35ecd26bcf53dbdaf562a2947016683ad58 /dbaccess
parentclang-analyzer-deadcode.DeadStores (diff)
downloadcore-c8a795c9a0cc542f008166109528d4257afe2851.tar.gz
core-c8a795c9a0cc542f008166109528d4257afe2851.zip
tdf#94709 - protect TableWindowTitle Command execution.
Change-Id: I202a154e18c1fbffc31abcc7ccd7f500b67a4c13
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/TableWindowTitle.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
index c661ee0e6be7..9db6d52b979c 100644
--- a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
@@ -110,7 +110,11 @@ void OTableWindowTitle::Command( const CommandEvent& rEvt )
{
GrabFocus();
if ( m_pTabWin )
- m_pTabWin->Command( rEvt );
+ {
+ // tdf#94709 - protect shutdown code-path.
+ VclPtr<OTableWindow> xTabWin(m_pTabWin);
+ xTabWin->Command( rEvt );
+ }
else
Control::Command(rEvt);
}