summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-10-04 16:02:38 +0200
committersb <sb@openoffice.org>2010-10-04 16:02:38 +0200
commit2cdf3404665ee5e2293bf548251b07e5785141ba (patch)
tree5d8813876ce585779bc9a6c98be8daa0ecf0e837 /configmgr
parent09619742df11641c4f53b00f46ebe85496f1a316 (diff)
sb133: #i114705# osl::Thread::onTerminated must not be called on deleted object
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/components.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index d1ffa8629a5f..d812e54498ac 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -175,6 +175,8 @@ private:
virtual void SAL_CALL run();
+ virtual void SAL_CALL onTerminated() { release(); }
+
rtl::Reference< WriteThread > * reference_;
Components & components_;
rtl::OUString url_;
@@ -188,6 +190,7 @@ Components::WriteThread::WriteThread(
reference_(reference), components_(components), url_(url), data_(data)
{
OSL_ASSERT(reference != 0);
+ acquire();
}
void Components::WriteThread::run() {