diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-07 13:26:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-07 13:36:19 +0000 |
commit | 260bfa5e4913c4ecb5720f3ef5163333374de744 (patch) | |
tree | 2eca7816c95998c224f984d883af0db276008853 /include | |
parent | Propagate failure of reading from stdin (diff) | |
download | core-260bfa5e4913c4ecb5720f3ef5163333374de744.tar.gz core-260bfa5e4913c4ecb5720f3ef5163333374de744.zip |
ofz: fix ppt import leak
Change-Id: I48b855f96464c74b76b473d5674fcdcc8388bf1b
Diffstat (limited to 'include')
-rw-r--r-- | include/filter/msfilter/svdfppt.hxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index 36227d051941..d83be89a1405 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -473,11 +473,16 @@ struct MSFILTER_DLLPUBLIC PPTFieldEntry { sal_uInt16 nPos; sal_uInt16 nTextRangeEnd; - SvxFieldItem* pField1; - SvxFieldItem* pField2; - OUString* pString; + std::unique_ptr<SvxFieldItem> xField1; + std::unique_ptr<SvxFieldItem> xField2; + std::unique_ptr<OUString> xString; + + PPTFieldEntry() + : nPos(0) + , nTextRangeEnd(0) + { + } - PPTFieldEntry() : nPos( 0 ), nTextRangeEnd( 0 ), pField1( nullptr ), pField2( nullptr ), pString( nullptr ) {}; ~PPTFieldEntry(); void SetDateTime( sal_uInt32 nType ); |