diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 11:07:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:43 +0000 |
commit | f848e9cc28d5a26f1f706ea35db16a9f5ad9376a (patch) | |
tree | de3142c63be830f966cd090db453a22ac9d3dd69 /sfx2 | |
parent | 83de961e0d5fcdcf2ca096736a03887e1cdf2ed8 (diff) |
coverity#1266518 Use after free
Change-Id: Ic50ace9d1421c9207ac95c54f363072c69b9ad00
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 3313c1d54c7a..3650edcf77cd 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -814,7 +814,8 @@ void SfxCommonTemplateDialog_Impl::ClearResource() void SfxCommonTemplateDialog_Impl::impl_clear() { - DELETEX(SfxStyleFamilies, pStyleFamilies); + delete pStyleFamilies; + pStyleFamilies = NULL; sal_uInt16 i; for ( i = 0; i < MAX_FAMILIES; ++i ) DELETEX(SfxTemplateItem, pFamilyState[i]); |