summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-06-14 14:16:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-06 12:31:40 +0000
commitc604243cae1eab5de55b8c7ed97f3deae8f6dd34 (patch)
treebaa7ec724195dcce25da296d0a6ae54e1ffa1b6c /sd
parentc79da6a42f1aa630435a1d2092580f3b1e9ff850 (diff)
c#708912# fix a double free in Sd*Options
(cherry picked from commit a6ee3d58c7cc3e6b0c4ddb31ddd8f495385adad2) Change-Id: I382c4d0b1206f84d2e38818aa022a3f4b1684b04
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/app/optsitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx
index 1ad7d2e9c48b..ce978d37e231 100644
--- a/sd/source/ui/app/optsitem.cxx
+++ b/sd/source/ui/app/optsitem.cxx
@@ -137,8 +137,8 @@ void SdOptionsGeneric::Init() const
SdOptionsGeneric::~SdOptionsGeneric()
{
- if( mpCfgItem )
- delete mpCfgItem;
+ delete mpCfgItem;
+ mpCfgItem = NULL;
}
// -----------------------------------------------------------------------------