Kaydet (Commit) a114d5ef authored tarafından Caolán McNamara's avatar Caolán McNamara

remove debugging-mode leak

üst daafe7b0
......@@ -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);
......
......@@ -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: */
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment