Kaydet (Commit) e6f8ec36 authored tarafından Takeshi Abe's avatar Takeshi Abe

Avoid possible memory leaks in case of exceptions

Change-Id: Iaf672463cf51d596148822d9b5effe5ab40f70d4
üst 06b63d3d
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <globals.hrc> #include <globals.hrc>
#include <misc.hrc> #include <misc.hrc>
#include <boost/scoped_ptr.hpp>
using namespace ::com::sun::star; using namespace ::com::sun::star;
...@@ -143,7 +144,7 @@ SfxTabPage* SwFootNotePage::Create(Window *pParent, const SfxItemSet &rSet) ...@@ -143,7 +144,7 @@ SfxTabPage* SwFootNotePage::Create(Window *pParent, const SfxItemSet &rSet)
void SwFootNotePage::Reset(const SfxItemSet &rSet) void SwFootNotePage::Reset(const SfxItemSet &rSet)
{ {
// if no example exists, otherwise Init here in Activate // if no example exists, otherwise Init here in Activate
SwPageFtnInfo* pDefFtnInfo = 0; boost::scoped_ptr<SwPageFtnInfo> pDefFtnInfo;
const SwPageFtnInfo* pFtnInfo; const SwPageFtnInfo* pFtnInfo;
const SfxPoolItem* pItem = SfxTabPage::GetItem(rSet, FN_PARAM_FTN_INFO); const SfxPoolItem* pItem = SfxTabPage::GetItem(rSet, FN_PARAM_FTN_INFO);
if( pItem ) if( pItem )
...@@ -154,8 +155,8 @@ void SwFootNotePage::Reset(const SfxItemSet &rSet) ...@@ -154,8 +155,8 @@ void SwFootNotePage::Reset(const SfxItemSet &rSet)
{ {
// when "standard" is being activated the footnote item is deleted, // when "standard" is being activated the footnote item is deleted,
// that's why a footnote structure has to be created here // that's why a footnote structure has to be created here
pDefFtnInfo = new SwPageFtnInfo(); pDefFtnInfo.reset(new SwPageFtnInfo());
pFtnInfo = pDefFtnInfo; pFtnInfo = pDefFtnInfo.get();
} }
// footnote area's height // footnote area's height
SwTwips lHeight = pFtnInfo->GetHeight(); SwTwips lHeight = pFtnInfo->GetHeight();
...@@ -250,7 +251,6 @@ void SwFootNotePage::Reset(const SfxItemSet &rSet) ...@@ -250,7 +251,6 @@ void SwFootNotePage::Reset(const SfxItemSet &rSet)
m_pLineDistEdit->SetValue( m_pLineDistEdit->SetValue(
m_pLineDistEdit->Normalize(pFtnInfo->GetBottomDist()), FUNIT_TWIP); m_pLineDistEdit->Normalize(pFtnInfo->GetBottomDist()), FUNIT_TWIP);
ActivatePage( rSet ); ActivatePage( rSet );
delete pDefFtnInfo;
} }
// stuff attributes into the set, when OK // stuff attributes into the set, when OK
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <node.hxx> #include <node.hxx>
#include <tblsel.hxx> #include <tblsel.hxx>
#include <sfx2/request.hxx> #include <sfx2/request.hxx>
#include <boost/scoped_ptr.hpp>
static bool bCheck1 = true; static bool bCheck1 = true;
static bool bCheck2 = false; static bool bCheck2 = false;
...@@ -368,16 +369,14 @@ IMPL_LINK_NOARG(SwSortDlg, DelimCharHdl) ...@@ -368,16 +369,14 @@ IMPL_LINK_NOARG(SwSortDlg, DelimCharHdl)
{ {
SfxAllItemSet aSet( rSh.GetAttrPool() ); SfxAllItemSet aSet( rSh.GetAttrPool() );
aSet.Put( SfxInt32Item( SID_ATTR_CHAR, GetDelimChar() ) ); aSet.Put( SfxInt32Item( SID_ATTR_CHAR, GetDelimChar() ) );
SfxAbstractDialog* pMap = pFact->CreateSfxDialog( m_pDelimPB, aSet, boost::scoped_ptr<SfxAbstractDialog> pMap(pFact->CreateSfxDialog( m_pDelimPB, aSet,
rSh.GetView().GetViewFrame()->GetFrame().GetFrameInterface(), RID_SVXDLG_CHARMAP ); rSh.GetView().GetViewFrame()->GetFrame().GetFrameInterface(), RID_SVXDLG_CHARMAP ));
if( RET_OK == pMap->Execute() ) if( RET_OK == pMap->Execute() )
{ {
SFX_ITEMSET_ARG( pMap->GetOutputItemSet(), pItem, SfxInt32Item, SID_ATTR_CHAR, false ); SFX_ITEMSET_ARG( pMap->GetOutputItemSet(), pItem, SfxInt32Item, SID_ATTR_CHAR, false );
if ( pItem ) if ( pItem )
m_pDelimEdt->SetText( OUString(pItem->GetValue()) ); m_pDelimEdt->SetText( OUString(pItem->GetValue()) );
} }
delete pMap;
} }
return 0; return 0;
} }
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "app.hrc" #include "app.hrc"
#include "table.hrc" #include "table.hrc"
#include "swabstdlg.hxx" #include "swabstdlg.hxx"
#include <boost/scoped_ptr.hpp>
namespace swui namespace swui
{ {
...@@ -185,11 +186,10 @@ IMPL_LINK( SwConvertTableDlg, AutoFmtHdl, PushButton*, pButton ) ...@@ -185,11 +186,10 @@ IMPL_LINK( SwConvertTableDlg, AutoFmtHdl, PushButton*, pButton )
SwAbstractDialogFactory* pFact = swui::GetFactory(); SwAbstractDialogFactory* pFact = swui::GetFactory();
OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!"); OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
AbstractSwAutoFormatDlg* pDlg = pFact->CreateSwAutoFormatDlg(pButton, pShell, false, pTAutoFmt); boost::scoped_ptr<AbstractSwAutoFormatDlg> pDlg(pFact->CreateSwAutoFormatDlg(pButton, pShell, false, pTAutoFmt));
OSL_ENSURE(pDlg, "Dialogdiet fail!"); OSL_ENSURE(pDlg, "Dialogdiet fail!");
if( RET_OK == pDlg->Execute()) if( RET_OK == pDlg->Execute())
pDlg->FillAutoFmtOfIndex( pTAutoFmt ); pDlg->FillAutoFmtOfIndex( pTAutoFmt );
delete pDlg;
return 0; return 0;
} }
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "table.hrc" #include "table.hrc"
#include "swabstdlg.hxx" #include "swabstdlg.hxx"
#include <boost/scoped_ptr.hpp>
namespace swui namespace swui
{ {
...@@ -190,11 +191,10 @@ IMPL_LINK( SwInsTableDlg, AutoFmtHdl, PushButton*, pButton ) ...@@ -190,11 +191,10 @@ IMPL_LINK( SwInsTableDlg, AutoFmtHdl, PushButton*, pButton )
SwAbstractDialogFactory* pFact = swui::GetFactory(); SwAbstractDialogFactory* pFact = swui::GetFactory();
OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!"); OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
AbstractSwAutoFormatDlg* pDlg = pFact->CreateSwAutoFormatDlg(pButton,pShell, false, pTAutoFmt); boost::scoped_ptr<AbstractSwAutoFormatDlg> pDlg(pFact->CreateSwAutoFormatDlg(pButton,pShell, false, pTAutoFmt));
OSL_ENSURE(pDlg, "Dialogdiet fail!"); OSL_ENSURE(pDlg, "Dialogdiet fail!");
if( RET_OK == pDlg->Execute()) if( RET_OK == pDlg->Execute())
pDlg->FillAutoFmtOfIndex( pTAutoFmt ); pDlg->FillAutoFmtOfIndex( pTAutoFmt );
delete pDlg;
return 0; return 0;
} }
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include "tblafmt.hxx" #include "tblafmt.hxx"
#include "tautofmt.hxx" #include "tautofmt.hxx"
#include "shellres.hxx" #include "shellres.hxx"
#include <boost/scoped_ptr.hpp>
using namespace com::sun::star; using namespace com::sun::star;
...@@ -286,10 +287,10 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, AddHdl) ...@@ -286,10 +287,10 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, AddHdl)
bool bOk = false, bFmtInserted = false; bool bOk = false, bFmtInserted = false;
while( !bOk ) while( !bOk )
{ {
SwStringInputDlg* pDlg = new SwStringInputDlg( this, boost::scoped_ptr<SwStringInputDlg> pDlg(new SwStringInputDlg( this,
aStrTitle, aStrTitle,
aStrLabel, aStrLabel,
OUString() ); OUString() ));
if( RET_OK == pDlg->Execute() ) if( RET_OK == pDlg->Execute() )
{ {
const OUString aFormatName( pDlg->GetInputString() ); const OUString aFormatName( pDlg->GetInputString() );
...@@ -337,7 +338,6 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, AddHdl) ...@@ -337,7 +338,6 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, AddHdl)
} }
else else
bOk = true; bOk = true;
delete pDlg;
} }
return 0; return 0;
} }
...@@ -349,8 +349,8 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RemoveHdl) ...@@ -349,8 +349,8 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RemoveHdl)
aMessage += m_pLbFormat->GetSelectEntry(); aMessage += m_pLbFormat->GetSelectEntry();
aMessage += "\n"; aMessage += "\n";
MessBox* pBox = new MessBox( this, WinBits( WB_OK_CANCEL ), boost::scoped_ptr<MessBox> pBox(new MessBox( this, WinBits( WB_OK_CANCEL ),
aStrDelTitle, aMessage); aStrDelTitle, aMessage));
if ( pBox->Execute() == RET_OK ) if ( pBox->Execute() == RET_OK )
{ {
...@@ -372,7 +372,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RemoveHdl) ...@@ -372,7 +372,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RemoveHdl)
bCoreDataChanged = true; bCoreDataChanged = true;
} }
} }
delete pBox; pBox.reset();
SelFmtHdl( 0 ); SelFmtHdl( 0 );
...@@ -384,10 +384,10 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RenameHdl) ...@@ -384,10 +384,10 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RenameHdl)
bool bOk = false; bool bOk = false;
while( !bOk ) while( !bOk )
{ {
SwStringInputDlg* pDlg = new SwStringInputDlg( this, boost::scoped_ptr<SwStringInputDlg> pDlg(new SwStringInputDlg( this,
aStrRenameTitle, aStrRenameTitle,
m_pLbFormat->GetSelectEntry(), m_pLbFormat->GetSelectEntry(),
OUString() ); OUString() ));
if( pDlg->Execute() == RET_OK ) if( pDlg->Execute() == RET_OK )
{ {
bool bFmtRenamed = false; bool bFmtRenamed = false;
...@@ -439,7 +439,6 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RenameHdl) ...@@ -439,7 +439,6 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RenameHdl)
} }
else else
bOk = true; bOk = true;
delete pDlg;
} }
return 0; return 0;
} }
......
...@@ -486,8 +486,8 @@ void SwDocShell::Execute(SfxRequest& rReq) ...@@ -486,8 +486,8 @@ void SwDocShell::Execute(SfxRequest& rReq)
if ( aFileName.isEmpty() ) if ( aFileName.isEmpty() )
{ {
SvtPathOptions aPathOpt; SvtPathOptions aPathOpt;
SfxNewFileDialog* pNewFileDlg = boost::scoped_ptr<SfxNewFileDialog> pNewFileDlg(
new SfxNewFileDialog(&GetView()->GetViewFrame()->GetWindow(), SFXWB_LOAD_TEMPLATE); new SfxNewFileDialog(&GetView()->GetViewFrame()->GetWindow(), SFXWB_LOAD_TEMPLATE));
pNewFileDlg->SetTemplateFlags(nFlags); pNewFileDlg->SetTemplateFlags(nFlags);
nRet = pNewFileDlg->Execute(); nRet = pNewFileDlg->Execute();
...@@ -551,7 +551,6 @@ void SwDocShell::Execute(SfxRequest& rReq) ...@@ -551,7 +551,6 @@ void SwDocShell::Execute(SfxRequest& rReq)
nFlags = pNewFileDlg->GetTemplateFlags(); nFlags = pNewFileDlg->GetTemplateFlags();
rReq.AppendItem( SfxStringItem( SID_TEMPLATE_NAME, aFileName ) ); rReq.AppendItem( SfxStringItem( SID_TEMPLATE_NAME, aFileName ) );
rReq.AppendItem( SfxInt32Item( SID_TEMPLATE_LOAD, (long) nFlags ) ); rReq.AppendItem( SfxInt32Item( SID_TEMPLATE_LOAD, (long) nFlags ) );
delete pNewFileDlg;
} }
if( !aFileName.isEmpty() ) if( !aFileName.isEmpty() )
...@@ -1062,17 +1061,15 @@ void SwDocShell::Execute(SfxRequest& rReq) ...@@ -1062,17 +1061,15 @@ void SwDocShell::Execute(SfxRequest& rReq)
//search for the view that created the call //search for the view that created the call
if(pViewShell->GetObjectShell() == this && pViewShell->GetDispatcher()) if(pViewShell->GetObjectShell() == this && pViewShell->GetDispatcher())
{ {
SfxFrameItem* pFrameItem = new SfxFrameItem( SID_DOCFRAME, boost::scoped_ptr<SfxFrameItem> pFrameItem(new SfxFrameItem( SID_DOCFRAME,
pViewShell->GetViewFrame() ); pViewShell->GetViewFrame() ));
SfxDispatcher* pDispatch = pViewShell->GetDispatcher(); SfxDispatcher* pDispatch = pViewShell->GetDispatcher();
pDispatch->Execute( pDispatch->Execute(
SID_OPENDOC, SID_OPENDOC,
SFX_CALLMODE_ASYNCHRON, SFX_CALLMODE_ASYNCHRON,
&aName, &aName,
&aReferer, &aReferer,
pFrameItem, 0L ); pFrameItem.get(), 0L );
delete pFrameItem;
break; break;
} }
pViewShell = SfxViewShell::GetNext(*pViewShell); pViewShell = SfxViewShell::GetNext(*pViewShell);
......
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
// text grid // text grid
#include <tgrditem.hxx> #include <tgrditem.hxx>
#include <boost/scoped_ptr.hpp>
using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::i18n;
using namespace ::com::sun::star::lang; using namespace ::com::sun::star::lang;
...@@ -170,7 +171,7 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor ) ...@@ -170,7 +171,7 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor )
{ {
sal_uInt16 nFontWhich = aFontWhich[i]; sal_uInt16 nFontWhich = aFontWhich[i];
sal_uInt16 nFontId = aFontIds[i]; sal_uInt16 nFontId = aFontIds[i];
SvxFontItem* pFontItem = 0; boost::scoped_ptr<SvxFontItem> pFontItem;
const SvxLanguageItem& rLang = (const SvxLanguageItem&)pDoc->GetDefault( aLangTypes[i] ); const SvxLanguageItem& rLang = (const SvxLanguageItem&)pDoc->GetDefault( aLangTypes[i] );
LanguageType eLanguage = rLang.GetLanguage(); LanguageType eLanguage = rLang.GetLanguage();
if(!pStdFont->IsFontDefault(nFontId)) if(!pStdFont->IsFontDefault(nFontId))
...@@ -183,8 +184,8 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor ) ...@@ -183,8 +184,8 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor )
aFont = pPrt->GetFontMetric( aFont ); aFont = pPrt->GetFontMetric( aFont );
} }
pFontItem = new SvxFontItem(aFont.GetFamily(), aFont.GetName(), pFontItem.reset(new SvxFontItem(aFont.GetFamily(), aFont.GetName(),
aEmptyOUStr, aFont.GetPitch(), aFont.GetCharSet(), nFontWhich); aEmptyOUStr, aFont.GetPitch(), aFont.GetCharSet(), nFontWhich));
} }
else else
{ {
...@@ -200,8 +201,8 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor ) ...@@ -200,8 +201,8 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor )
nFontTypes[i], nFontTypes[i],
eLanguage, eLanguage,
DEFAULTFONT_FLAGS_ONLYONE ); DEFAULTFONT_FLAGS_ONLYONE );
pFontItem = new SvxFontItem(aLangDefFont.GetFamily(), aLangDefFont.GetName(), pFontItem.reset(new SvxFontItem(aLangDefFont.GetFamily(), aLangDefFont.GetName(),
aEmptyOUStr, aLangDefFont.GetPitch(), aLangDefFont.GetCharSet(), nFontWhich); aEmptyOUStr, aLangDefFont.GetPitch(), aLangDefFont.GetCharSet(), nFontWhich));
} }
pDoc->SetDefault(*pFontItem); pDoc->SetDefault(*pFontItem);
if( !bHTMLTemplSet ) if( !bHTMLTemplSet )
...@@ -209,7 +210,7 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor ) ...@@ -209,7 +210,7 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor )
SwTxtFmtColl *pColl = pDoc->GetTxtCollFromPool(RES_POOLCOLL_STANDARD); SwTxtFmtColl *pColl = pDoc->GetTxtCollFromPool(RES_POOLCOLL_STANDARD);
pColl->ResetFmtAttr(nFontWhich); pColl->ResetFmtAttr(nFontWhich);
} }
delete pFontItem; pFontItem.reset();
sal_Int32 nFontHeight = pStdFont->GetFontHeight( FONT_STANDARD, i, eLanguage ); sal_Int32 nFontHeight = pStdFont->GetFontHeight( FONT_STANDARD, i, eLanguage );
if(nFontHeight <= 0) if(nFontHeight <= 0)
nFontHeight = pStdFont->GetDefaultHeightFor( nFontId, eLanguage ); nFontHeight = pStdFont->GetDefaultHeightFor( nFontId, eLanguage );
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#include <misc.hrc> #include <misc.hrc>
#include <IDocumentFieldsAccess.hxx> #include <IDocumentFieldsAccess.hxx>
#include <boost/scoped_ptr.hpp>
using namespace ::com::sun::star; using namespace ::com::sun::star;
...@@ -75,7 +76,7 @@ void SwGlossaryHdl::GlossaryDlg() ...@@ -75,7 +76,7 @@ void SwGlossaryHdl::GlossaryDlg()
{ {
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "Dialogdiet fail!"); OSL_ENSURE(pFact, "Dialogdiet fail!");
AbstractGlossaryDlg* pDlg = pFact->CreateGlossaryDlg(pViewFrame, this, pWrtShell); boost::scoped_ptr<AbstractGlossaryDlg> pDlg(pFact->CreateGlossaryDlg(pViewFrame, this, pWrtShell));
OSL_ENSURE(pDlg, "Dialogdiet fail!"); OSL_ENSURE(pDlg, "Dialogdiet fail!");
OUString sName; OUString sName;
OUString sShortName; OUString sShortName;
...@@ -86,7 +87,7 @@ void SwGlossaryHdl::GlossaryDlg() ...@@ -86,7 +87,7 @@ void SwGlossaryHdl::GlossaryDlg()
sShortName = pDlg->GetCurrShortName(); sShortName = pDlg->GetCurrShortName();
} }
delete pDlg; pDlg.reset();
DELETEZ(pCurGrp); DELETEZ(pCurGrp);
if(HasGlossaryList()) if(HasGlossaryList())
{ {
...@@ -448,7 +449,7 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName, ...@@ -448,7 +449,7 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName,
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!"); OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
AbstractSwSelGlossaryDlg* pDlg = pFact->CreateSwSelGlossaryDlg(0, aShortName); boost::scoped_ptr<AbstractSwSelGlossaryDlg> pDlg(pFact->CreateSwSelGlossaryDlg(0, aShortName));
OSL_ENSURE(pDlg, "Dialogdiet fail!"); OSL_ENSURE(pDlg, "Dialogdiet fail!");
for(sal_uInt16 i = 0; i < aFoundArr.size(); ++i) for(sal_uInt16 i = 0; i < aFoundArr.size(); ++i)
{ {
...@@ -459,7 +460,7 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName, ...@@ -459,7 +460,7 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName,
const sal_Int32 nRet = RET_OK == pDlg->Execute()? const sal_Int32 nRet = RET_OK == pDlg->Execute()?
pDlg->GetSelectedIdx(): pDlg->GetSelectedIdx():
LISTBOX_ENTRY_NOTFOUND; LISTBOX_ENTRY_NOTFOUND;
delete pDlg; pDlg.reset();
if(LISTBOX_ENTRY_NOTFOUND != nRet) if(LISTBOX_ENTRY_NOTFOUND != nRet)
{ {
TextBlockInfo_Impl* pData = &aFoundArr[nRet]; TextBlockInfo_Impl* pData = &aFoundArr[nRet];
...@@ -723,7 +724,7 @@ bool SwGlossaryHdl::ImportGlossaries( const OUString& rName ) ...@@ -723,7 +724,7 @@ bool SwGlossaryHdl::ImportGlossaries( const OUString& rName )
if( !rName.isEmpty() ) if( !rName.isEmpty() )
{ {
const SfxFilter* pFilter = 0; const SfxFilter* pFilter = 0;
SfxMedium* pMed = new SfxMedium( rName, STREAM_READ, 0, 0 ); boost::scoped_ptr<SfxMedium> pMed(new SfxMedium( rName, STREAM_READ, 0, 0 ));
SfxFilterMatcher aMatcher( OUString("swriter") ); SfxFilterMatcher aMatcher( OUString("swriter") );
pMed->UseInteractionHandler( true ); pMed->UseInteractionHandler( true );
if( !aMatcher.GuessFilter( *pMed, &pFilter, sal_False ) ) if( !aMatcher.GuessFilter( *pMed, &pFilter, sal_False ) )
...@@ -743,7 +744,6 @@ bool SwGlossaryHdl::ImportGlossaries( const OUString& rName ) ...@@ -743,7 +744,6 @@ bool SwGlossaryHdl::ImportGlossaries( const OUString& rName )
} }
} }
} }
DELETEZ(pMed);
} }
return bRet; return bRet;
} }
......
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