diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-03 11:37:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-03 12:03:46 +0000 |
commit | f0aef9b31f91d5aba71b6879ad13e39241aa4f0f (patch) | |
tree | 02d470bbc033c183447d385e7ddeb657689703a1 /sd | |
parent | 06bc1914ddf2e3d814f9589ce0ae84e5e708a7c3 (diff) |
valgrind: fix leak
==1739== by 0x7A93F1C: SfxUInt16Item::Clone(SfxItemPool*) const (in core/instdir/program/libsvllo.so)
==1739== by 0x7047E11: SfxShell::PutItem(SfxPoolItem const&) (shell.cxx:196)
==1739== by 0x27FCA298: SdModule::GetSdOptions(DocumentType) (sdmod.cxx:172)
none of the other uses of pCache->SetState clone, and I don't see why this one
does.
Change-Id: I7d3cf6969c433c890776dfbcc1dc57d72420b6e2
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/app/sdmod.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/app/sdmod.cxx b/sd/source/ui/app/sdmod.cxx index 909213a6939d..8f0f06cda1eb 100644 --- a/sd/source/ui/app/sdmod.cxx +++ b/sd/source/ui/app/sdmod.cxx @@ -103,9 +103,7 @@ SdModule::SdModule(SfxObjectFactory* pFact1, SfxObjectFactory* pFact2 ) SdModule::~SdModule() { delete pSearchItem; - - if( pNumberFormatter ) - delete pNumberFormatter; + delete pNumberFormatter; ::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current()); if( pDocShell ) |