From 231e1e416c039d1f9724962a89cf0573a3db48a2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 29 Jul 2020 20:41:48 +0200 Subject: fix shutdown crash in basic another change I am working on slightly tweaks the shutdown ordering and exposes this problem where two classes both think they own the same object. Change-Id: I7477cf7eda5b5729ee3861cb4a1be43bb34d9ea6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99724 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/runtime/basrdll.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'basic/source/runtime/basrdll.cxx') diff --git a/basic/source/runtime/basrdll.cxx b/basic/source/runtime/basrdll.cxx index 6da6ed9e2e2d..29cd292e2bdf 100644 --- a/basic/source/runtime/basrdll.cxx +++ b/basic/source/runtime/basrdll.cxx @@ -123,4 +123,9 @@ SbxAppData& GetSbxData_Impl() return *BasicDLLImpl::BASIC_DLL->xSbxAppData; } +bool IsSbxData_Impl() +{ + return BasicDLLImpl::BASIC_DLL && BasicDLLImpl::BASIC_DLL->xSbxAppData; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit