summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-17 21:17:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-20 15:23:08 +0100
commite6de857ed920417aa8d012778c6f0175971e04e3 (patch)
tree928d6046dbe36f86572efe87d30a92f9a9d48e8c /sfx2
parent4843a52598ec8fe4612d3dca74e66e1a1749d91c (diff)
remove debugging-mode leak
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appinit.cxx2
-rw-r--r--sfx2/source/appl/appquit.cxx3
-rw-r--r--sfx2/source/inc/appdata.hxx3
3 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index 3b65327c7a..3e373c3de6 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 f08435bf40..a81ccbee4f 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 b38e5d8eb4..29f86318b3 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;