diff options
author | sb <sb@openoffice.org> | 2010-10-04 16:02:38 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-10-04 16:02:38 +0200 |
commit | 2cdf3404665ee5e2293bf548251b07e5785141ba (patch) | |
tree | 5d8813876ce585779bc9a6c98be8daa0ecf0e837 /configmgr/source | |
parent | 09619742df11641c4f53b00f46ebe85496f1a316 (diff) |
sb133: #i114705# osl::Thread::onTerminated must not be called on deleted object
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/components.cxx | 3 |
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() { |