summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
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;
}
// -----------------------------------------------------------------------------