[Libreoffice-commits] .: filter/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Nov 15 04:26:46 PST 2010
filter/source/config/cache/lateinitthread.cxx | 5 +++++
filter/source/config/cache/lateinitthread.hxx | 2 ++
2 files changed, 7 insertions(+)
New commits:
commit 8a49f5a3110cbe24240c4a7fcca3f0a0e1ac0ffb
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Nov 15 12:09:50 2010 +0000
#i112890# LateInitThread thread never deleted
diff --git a/filter/source/config/cache/lateinitthread.cxx b/filter/source/config/cache/lateinitthread.cxx
index 7baec7a..b5afc45 100644
--- a/filter/source/config/cache/lateinitthread.cxx
+++ b/filter/source/config/cache/lateinitthread.cxx
@@ -77,6 +77,11 @@ void SAL_CALL LateInitThread::run()
rCache->load(FilterCache::E_CONTAINS_ALL, sal_True);
}
+void SAL_CALL LateInitThread::onTerminated()
+{
+ delete this;
+}
+
} // namespace config
} // namespace filter
diff --git a/filter/source/config/cache/lateinitthread.hxx b/filter/source/config/cache/lateinitthread.hxx
index 24e83af..5143a4c 100644
--- a/filter/source/config/cache/lateinitthread.hxx
+++ b/filter/source/config/cache/lateinitthread.hxx
@@ -82,6 +82,8 @@ class LateInitThread : public ::osl::Thread
/** @short thread function.
*/
virtual void SAL_CALL run();
+
+ virtual void SAL_CALL onTerminated();
};
} // namespace config
More information about the Libreoffice-commits
mailing list