[Libreoffice-commits] .: i18npool/source sfx2/source

Julien Nabet serval2412 at kemper.freedesktop.org
Mon Aug 8 14:59:56 PDT 2011


 i18npool/source/calendar/calendar_gregorian.cxx |    1 +
 sfx2/source/menu/mnumgr.cxx                     |    4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 2a90263421ff14eaf246998cc71551583a140f8a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Aug 8 23:58:34 2011 +0200

    Add 2 lacking va_end.

diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx
index 5cd86d7..7c1e15c 100644
--- a/i18npool/source/calendar/calendar_gregorian.cxx
+++ b/i18npool/source/calendar/calendar_gregorian.cxx
@@ -61,6 +61,7 @@ static void debug_cal_msg(const char *pat, ...)
     va_list ap;
     va_start(ap, pat);
     vfprintf(stderr, pat, ap);
+    va_end(ap);
 }
 
 #if erDUMP_ICU_CALENDAR
diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx
index b82aeeb..793c122 100644
--- a/sfx2/source/menu/mnumgr.cxx
+++ b/sfx2/source/menu/mnumgr.cxx
@@ -442,8 +442,10 @@ sal_uInt16 SfxPopupMenuManager::Execute( const Point& rPoint, Window* pWindow, c
 
     va_list pArgs;
     va_start(pArgs, pArg1);
+    sal_uInt16 nRet = Execute( rPoint, pWindow, pArgs, pArg1 );
+    va_end(pArgs);
 
-    return (Execute( rPoint, pWindow, pArgs, pArg1 ));
+    return (nRet);
 }
 
 //-------------------------------------------------------------------------


More information about the Libreoffice-commits mailing list