diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-11 23:29:01 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-11 23:41:51 -0400 |
commit | b5800fac1d57b80772823bd8bc288a6cebe82e6f (patch) | |
tree | b228cc7a8517fdb2311d8a7527719da9b65b49dd /editeng/inc | |
parent | 3b887c8d3fef676e0037a4f3381f6a491ec0da4f (diff) |
We need to delete EditDLL before de-initialize vcl to avoid crash.
Without manually releasing the EditDLL singleton instance, it gets
deleted *after* the cppunit does its cleanup, which de-initializes VCL.
The problem is, when the EditDLL instance is destroyed, its member
GlobalEditData instance deletes the OutputDevice instance that it owns,
which in turn accesses font caches in VCL. But by the time we reach
that point, VCL is already de-initialized, hence the problem.
Diffstat (limited to 'editeng/inc')
-rw-r--r-- | editeng/inc/editeng/eerdll.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editeng/inc/editeng/eerdll.hxx b/editeng/inc/editeng/eerdll.hxx index 00094cfbc436..226aefe00479 100644 --- a/editeng/inc/editeng/eerdll.hxx +++ b/editeng/inc/editeng/eerdll.hxx @@ -53,6 +53,7 @@ public: ResMgr* GetResMgr() const { return pResMgr; } GlobalEditData* GetGlobalData() const { return pGlobalData; } static EditDLL& Get(); + static void Release(); }; #define EE_DLL() EditDLL::Get() |