[Libreoffice-commits] core.git: sd/source

Julien Nabet serval2412 at yahoo.fr
Sun Nov 22 01:58:12 PST 2015


 sd/source/ui/func/fusel.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 9cd20bc273c651097122e5e265bb1b342983203f
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Nov 22 10:11:37 2015 +0100

    cppcheck: fix 1 memleak (fusel.cxx)
    
    Change-Id: I6201d926e6987f231ce11ab6d3a502e8034b4818
    Reviewed-on: https://gerrit.libreoffice.org/20114
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index ce59101..03569ca 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -1401,12 +1401,11 @@ bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos)
                     {
                         uno::Any aRet;
                         uno::Sequence< sal_Int16 > aOutArgsIndex;
+                        uno::Sequence<uno::Any> aParams;
                         uno::Sequence< uno::Any > aOutArgs;
-                        uno::Sequence< uno::Any >* pInArgs =
-                            new uno::Sequence< uno::Any >(0);
 
                         ErrCode eErr = mpDocSh->CallXScript( aMacro,
-                            *pInArgs, aRet, aOutArgsIndex, aOutArgs);
+                            aParams, aRet, aOutArgsIndex, aOutArgs);
 
                         // Check the return value from the script
                         bool bTmp = false;


More information about the Libreoffice-commits mailing list