diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-07-29 20:41:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-30 10:10:22 +0200 |
commit | 231e1e416c039d1f9724962a89cf0573a3db48a2 (patch) | |
tree | 7fea67891c544b4cc69679e94e47e1950c10bb52 /basic/source/runtime/basrdll.cxx | |
parent | 75f398b22ae14dcf442abf6b1c92a50509565ae5 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/runtime/basrdll.cxx')
-rw-r--r-- | basic/source/runtime/basrdll.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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: */ |