summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-15 22:18:57 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-15 22:33:18 +0100
commit0885e37063e1c04e24bcf94d792b6bacc2d7d38a (patch)
tree363d5046f32be39a8eaee8eede2b924ffa13476d /sc
parentbe64af3722e919f2a218f444daa04c4a70eb449c (diff)
coverity: fix memory leak
Change-Id: I5d9d240af15f3c7da1e6fe29a69dc0366684b55f
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index d587bf13f5b2..ff9bb374b573 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -2395,7 +2395,7 @@ void ScXMLImport::SetChangeTrackingViewSettings(const com::sun::star::uno::Seque
{
ScXMLImport::MutexGuard aGuard(*this);
sal_Int16 nTemp16(0);
- ScChangeViewSettings* pViewSettings(new ScChangeViewSettings());
+ boost::scoped_ptr<ScChangeViewSettings> pViewSettings(new ScChangeViewSettings());
for (sal_Int32 i = 0; i < nCount; ++i)
{
rtl::OUString sName(rChangeProps[i].Name);