summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 5762979a7528..515088d11916 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -2085,9 +2085,12 @@ SvxConfigEntry::SvxConfigEntry( const OUString& rDisplayName,
SvxConfigEntry::~SvxConfigEntry()
{
- for (auto const& entry : *mpEntries)
+ if (mpEntries)
{
- delete entry;
+ for (auto const& entry : *mpEntries)
+ {
+ delete entry;
+ }
}
}