summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-02 15:13:09 +0200
committerAndras Timar <andras.timar@collabora.com>2018-03-19 10:19:01 +0100
commitcd61c0cd9e5c66c99987c56d7514b254ff3d6623 (patch)
treea3e6298e93e08052e15e73def80d494ca0e56265 /dbaccess
parent9e52bf28afc3e27576f6794ff3681c0cb705e06b (diff)
tdf#115998 base: crash on delete relationship
Change-Id: Ida8cc9ef0b812254990ac808f78ae183ae28a1c0 Reviewed-on: https://gerrit.libreoffice.org/50633 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 46b32a022ee3679721e410e470c57b6a0b91ecb0) Reviewed-on: https://gerrit.libreoffice.org/50769 Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org> (cherry picked from commit 63bd3beb23e1d8975cea209501c63d4c84396e26)
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/TableWindow.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbaccess/source/ui/querydesign/TableWindow.cxx b/dbaccess/source/ui/querydesign/TableWindow.cxx
index 7e372a0c848a..1ee977f3cb1b 100644
--- a/dbaccess/source/ui/querydesign/TableWindow.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindow.cxx
@@ -490,6 +490,7 @@ void OTableWindow::Remove()
{
// Delete the window
OJoinTableView* pTabWinCont = getTableView();
+ VclPtr<OTableWindow> aHoldSelf(this); // keep ourselves alive during the RemoveTabWin process
pTabWinCont->RemoveTabWin( this );
pTabWinCont->Invalidate();
}