remove debugging-mode leak

This commit is contained in:
Caolán McNamara 2011-05-17 21:17:24 +01:00
parent daafe7b084
commit a114d5efcb
3 changed files with 7 additions and 1 deletions

View file

@ -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);

View file

@ -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: */

View file

@ -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;