diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-14 15:30:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-14 16:55:51 +0200 |
commit | 3a0ae2aae3f226e5e2e3785e578dee3ab4d2fa35 (patch) | |
tree | 40cda8e85a830985c4e9aef65eb7003a1ce950f1 /cui | |
parent | fb959e581c900b392efd0bb329b7cf30c8ed56a5 (diff) |
fix crash on close customize dialog
after
commit 00431a8afcad08da11835131c2cd423d7f8cd115
Date: Tue Mar 13 11:57:33 2018 +0200
loplugin:useuniqueptr in SvxEntries
Change-Id: Ia115454522b87db93cefcbd89ca5d965f9b431c7
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 7 |
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; + } } } |