summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-26 11:07:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-26 12:14:43 +0000
commitf848e9cc28d5a26f1f706ea35db16a9f5ad9376a (patch)
treede3142c63be830f966cd090db453a22ac9d3dd69 /sfx2
parentcoverity#1244945 Untrusted value as argument (diff)
downloadcore-f848e9cc28d5a26f1f706ea35db16a9f5ad9376a.tar.gz
core-f848e9cc28d5a26f1f706ea35db16a9f5ad9376a.zip
coverity#1266518 Use after free
Change-Id: Ic50ace9d1421c9207ac95c54f363072c69b9ad00
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/templdlg.cxx3
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]);