diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-02 15:13:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-05 08:38:09 +0100 |
commit | 46b32a022ee3679721e410e470c57b6a0b91ecb0 (patch) | |
tree | a40d40f7a9af15364ec06522886fc0cd06883c94 /dbaccess | |
parent | vcl: move vcl/source/gdi/bitmap.cxx to vcl/source/bitmap/bitmap.cxx (diff) | |
download | core-46b32a022ee3679721e410e470c57b6a0b91ecb0.tar.gz core-46b32a022ee3679721e410e470c57b6a0b91ecb0.zip |
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>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/TableWindow.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dbaccess/source/ui/querydesign/TableWindow.cxx b/dbaccess/source/ui/querydesign/TableWindow.cxx index 6843cc1ecbd2..a8963e5a4001 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(); } |