diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-10-23 15:36:48 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-10-23 15:38:20 +0200 |
commit | a1fad26e045ff1fec0c63243e3516ef2da7f390d (patch) | |
tree | 58cbf7c9c2924378d7ba90ae75f5ca89c45810fc /basic/source | |
parent | Avoid left shift of negative values (ubsan) (diff) | |
download | core-a1fad26e045ff1fec0c63243e3516ef2da7f390d.tar.gz core-a1fad26e045ff1fec0c63243e3516ef2da7f390d.zip |
fdo#84935: basic: DocBasicItem is a UNO service, lock SolarMutex in dtor
Change-Id: Ia31d735ba54d18f406653debce04a07c077d09eb
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/classes/sb.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 19eb91ef4836..5a88c3d3450a 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -109,7 +109,10 @@ DocBasicItem::DocBasicItem( StarBASIC& rDocBasic ) : DocBasicItem::~DocBasicItem() { + SolarMutexGuard g; + stopListening(); + mxClassModules.Clear(); // release with SolarMutex locked } void DocBasicItem::clearDependingVarsOnDelete( StarBASIC& rDeletedBasic ) |