summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-18 17:11:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-18 21:08:40 +0100
commit43641dbdfc25fdecee0c58acb98e016797399ea7 (patch)
tree0f2f6391aa0c51a09c9c0130d9d75e757c2b636b /sc
parentf36c0efc89201f49dd14d0a225a548753e0b8fac (diff)
coverity#1371371 Resource leak
Change-Id: Icf83030835a62a7ba91a085e87889c17a106993a
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/expop2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/expop2.cxx b/sc/source/filter/excel/expop2.cxx
index 736759645333..cc51946ddff6 100644
--- a/sc/source/filter/excel/expop2.cxx
+++ b/sc/source/filter/excel/expop2.cxx
@@ -98,8 +98,8 @@ FltError ExportBiff5::Write()
VbaExport aExport(pDocShell->GetModel());
if (aExport.containsVBAProject())
{
- SotStorage* pVBARoot = xRootStrg->OpenSotStorage("_VBA_PROJECT_CUR");
- aExport.exportVBA(pVBARoot);
+ tools::SvRef<SotStorage> xVBARoot = xRootStrg->OpenSotStorage("_VBA_PROJECT_CUR");
+ aExport.exportVBA(xVBARoot);
}
}
else if( pDocShell && xRootStrg.Is() && eVbaExportMode == VBAExportMode::REEXPORT_STREAM )