summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-09-07 19:01:02 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-09-07 19:01:35 +0200
commit8277bbbfeddf2db4dd02c927b5d73f351e3656a0 (patch)
tree18d6311bfd13b8057ac0f5a919ec2c9ffd722e10 /sfx2
parentb4f8efc3bc673f8e3e0bcc74df0d8cc008d9190e (diff)
CID#1078580: Dereference after null check
Change-Id: I822d9110132955b62e11373fc7cc773eacbf6740
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 8df6b8466717..46ff8b9003e3 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -2599,11 +2599,11 @@ sal_Bool SfxCmisPropertiesPage::FillItemSet( SfxItemSet& rSet )
pIter != changedProps.end( ); ++pIter )
aModifiedProps[ nCount++ ] = *pIter;
pInfo->SetCmisProperties( aModifiedProps );
+ rSet.Put( *pInfo );
+ if ( bMustDelete )
+ delete pInfo;
}
- rSet.Put( *pInfo );
- if ( bMustDelete )
- delete pInfo;
return modifiedNum;
}