diff options
author | Herbert Dürr <hdu@apache.org> | 2012-06-14 14:16:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-06 12:31:40 +0000 |
commit | c604243cae1eab5de55b8c7ed97f3deae8f6dd34 (patch) | |
tree | baa7ec724195dcce25da296d0a6ae54e1ffa1b6c /sd | |
parent | c79da6a42f1aa630435a1d2092580f3b1e9ff850 (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.cxx | 4 |
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; } // ----------------------------------------------------------------------------- |