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

valgrind: remove leaks

üst 3f547089
...@@ -257,17 +257,16 @@ bool SfxApplication::Initialize_Impl() ...@@ -257,17 +257,16 @@ bool SfxApplication::Initialize_Impl()
// not processed are given to SFX as Errorcode 1. // not processed are given to SFX as Errorcode 1.
new SimpleErrorHandler; new SimpleErrorHandler;
#endif #endif
new SfxErrorHandler(RID_ERRHDL, ERRCODE_AREA_TOOLS, ERRCODE_AREA_LIB1); pAppData_Impl->m_pToolsErrorHdl = new SfxErrorHandler(
RID_ERRHDL, ERRCODE_AREA_TOOLS, ERRCODE_AREA_LIB1);
new SfxErrorHandler( pAppData_Impl->m_pSoErrorHdl = new SfxErrorHandler(
RID_SO_ERROR_HANDLER, ERRCODE_AREA_SO, ERRCODE_AREA_SO_END); RID_SO_ERROR_HANDLER, ERRCODE_AREA_SO, ERRCODE_AREA_SO_END);
new SfxErrorHandler( pAppData_Impl->m_pSbxErrorHdl = new SfxErrorHandler(
RID_BASIC_START, ERRCODE_AREA_SBX, ERRCODE_AREA_SBX_END ); RID_BASIC_START, ERRCODE_AREA_SBX, ERRCODE_AREA_SBX_END );
// diverse Pointer // diverse Pointer
SfxPickList::GetOrCreate( SvtHistoryOptions().GetSize( ePICKLIST ) ); SfxPickList::GetOrCreate( SvtHistoryOptions().GetSize( ePICKLIST ) );
DBG_ASSERT( !pAppData_Impl->pAppDispat, "AppDispatcher already exists" ); DBG_ASSERT( !pAppData_Impl->pAppDispat, "AppDispatcher already exists" );
pAppData_Impl->pAppDispat = new SfxDispatcher((SfxDispatcher*)0); pAppData_Impl->pAppDispat = new SfxDispatcher((SfxDispatcher*)0);
pAppData_Impl->pSlotPool = new SfxSlotPool; pAppData_Impl->pSlotPool = new SfxSlotPool;
......
...@@ -154,6 +154,11 @@ void SfxApplication::Deinitialize() ...@@ -154,6 +154,11 @@ void SfxApplication::Deinitialize()
//TODO/CLEANTUP //TODO/CLEANTUP
//ReleaseArgs could be used instead! //ReleaseArgs could be used instead!
pAppData_Impl->pPool = NULL; pAppData_Impl->pPool = NULL;
NoChaos::ReleaseItemPool();
delete pAppData_Impl->m_pSbxErrorHdl;
delete pAppData_Impl->m_pSoErrorHdl;
delete pAppData_Impl->m_pToolsErrorHdl;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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