summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-12-01 19:26:54 +0900
committerMichael Stahl <mstahl@redhat.com>2015-12-01 11:43:26 +0000
commitc5c3a1414b52a08ef5701e83e3c1cdcb4c6f7d5a (patch)
treefe114bb2786450e38d9f6874c8e67eafd1777ae2
parente9b0a45a682f7d18c04dafd973a0357dbf707dd0 (diff)
cppcheck: memleak
Change-Id: I40e784ff2aaa2d7d0f0d30264646705283c1d73a Reviewed-on: https://gerrit.libreoffice.org/20324 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--sc/source/ui/drawfunc/fusel.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx
index 8626daa97364..8a1dbd763583 100644
--- a/sc/source/ui/drawfunc/fusel.cxx
+++ b/sc/source/ui/drawfunc/fusel.cxx
@@ -214,10 +214,9 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
uno::Any aRet;
uno::Sequence< sal_Int16 > aOutArgsIndex;
uno::Sequence< uno::Any > aOutArgs;
- uno::Sequence< uno::Any >* pInArgs =
- new uno::Sequence< uno::Any >(0);
+ uno::Sequence< uno::Any > aInArgs;
pObjSh->CallXScript( pInfo->GetMacro(),
- *pInArgs, aRet, aOutArgsIndex, aOutArgs, true, &aCaller );
+ aInArgs, aRet, aOutArgsIndex, aOutArgs, true, &aCaller );
pViewShell->FakeButtonUp( pViewShell->GetViewData().GetActivePart() );
return true; // kein CaptureMouse etc.
}