diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-17 21:17:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-20 15:23:08 +0100 |
commit | a114d5efcb5265ac80b6b4ec7a7836a97d372e2a (patch) | |
tree | 4d4d55e7ac0614f3413e2cb26ae53132f6ff3a27 /sfx2 | |
parent | daafe7b084cddbc9e91a8a1df336e84aed78f702 (diff) |
remove debugging-mode leak
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appinit.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/appquit.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/inc/appdata.hxx | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index 4120759de462..1df6f1226a16 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -255,7 +255,7 @@ bool SfxApplication::Initialize_Impl() #ifdef DBG_UTIL // The SimplerErrorHandler is for debugging. In the Product errors // not processed are given to SFX as Errorcode 1. - new SimpleErrorHandler; + pAppData_Impl->m_pSimpleErrorHdl = new SimpleErrorHandler; #endif pAppData_Impl->m_pToolsErrorHdl = new SfxErrorHandler( RID_ERRHDL, ERRCODE_AREA_TOOLS, ERRCODE_AREA_LIB1); diff --git a/sfx2/source/appl/appquit.cxx b/sfx2/source/appl/appquit.cxx index c411cf3c3980..b9472ce3603d 100644 --- a/sfx2/source/appl/appquit.cxx +++ b/sfx2/source/appl/appquit.cxx @@ -159,6 +159,9 @@ void SfxApplication::Deinitialize() delete pAppData_Impl->m_pSbxErrorHdl; delete pAppData_Impl->m_pSoErrorHdl; delete pAppData_Impl->m_pToolsErrorHdl; +#ifdef DBG_UTIL + delete pAppData_Impl->m_pSimpleErrorHdl; +#endif } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/inc/appdata.hxx b/sfx2/source/inc/appdata.hxx index 8f5dad3ba618..ee107493975c 100644 --- a/sfx2/source/inc/appdata.hxx +++ b/sfx2/source/inc/appdata.hxx @@ -112,6 +112,9 @@ public: // application members SfxFilterMatcher* pMatcher; ResMgr* pLabelResMgr; +#ifdef DBG_UTIL + SimpleErrorHandler *m_pSimpleErrorHdl; +#endif SfxErrorHandler *m_pToolsErrorHdl; SfxErrorHandler *m_pSoErrorHdl; SfxErrorHandler *m_pSbxErrorHdl; |