diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-17 18:57:15 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-17 19:09:23 +0100 |
commit | db62ad5984d19f5af57f38d21aa98b709030a2cf (patch) | |
tree | edafac1eca483db3450b62430db10f2066da5e70 /sc | |
parent | a62303c13161b5fbe620d69aa82f02997fe41bee (diff) |
coverity: fix memory leak
Change-Id: Ice50e9b84a6666b4ce0d02072c5fb40ed313692b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xecontent.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx index 3f35f5ec5ee2..9a7b96e5e5e9 100644 --- a/sc/source/filter/excel/xecontent.cxx +++ b/sc/source/filter/excel/xecontent.cxx @@ -911,7 +911,7 @@ void XclExpCFImpl::SaveXml( XclExpXmlStream& rStrm ) // we need to write the text without quotes // we have to actually get the string from // the token array for that - ScTokenArray* pTokenArray = mrFormatEntry.CreateTokenArry(0); + boost::scoped_ptr<ScTokenArray> pTokenArray(mrFormatEntry.CreateTokenArry(0)); if(pTokenArray->GetLen()) aText = XclXmlUtils::ToOString(pTokenArray->First()->GetString()); } |