Commits

Anonymous committed 627d9ea

sb133: #i114705# osl::Thread::onTerminated must not be called on deleted object

  • Participants
  • Parent commits 4013afb

Comments (0)

Files changed (1)

File configmgr/source/components.cxx

 
     virtual void SAL_CALL run();
 
+    virtual void SAL_CALL onTerminated() { release(); }
+
     rtl::Reference< WriteThread > * reference_;
     Components & components_;
     rtl::OUString url_;
     reference_(reference), components_(components), url_(url), data_(data)
 {
     OSL_ASSERT(reference != 0);
+    acquire();
 }
 
 void Components::WriteThread::run() {