From a1b5d0f5efe2bef7c36692d7bb0b68d340f7f881 Mon Sep 17 00:00:00 2001 From: "Alexander S.Kresin" Date: Wed, 2 Apr 2003 15:32:40 +0000 Subject: [PATCH] 2003-04-02 19:35 UTC+0300 Alexander Kresin --- harbour/ChangeLog | 4 ++++ harbour/source/rtl/langapi.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 52b7e5e45b..21018c439e 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2003-04-02 19:35 UTC+0300 Alexander Kresin + * source/rtl/langapi.c + ! Memory leak is fixed. + 2003-04-02 14:18 UTC+0300 Alexander Kresin * include/hbapicdp.h * source/codepage/cdp_tpl.c diff --git a/harbour/source/rtl/langapi.c b/harbour/source/rtl/langapi.c index 950e11d942..f00b6d1c5d 100644 --- a/harbour/source/rtl/langapi.c +++ b/harbour/source/rtl/langapi.c @@ -222,7 +222,8 @@ HB_FUNC( HB_LANGSELECT ) HB_FUNC( HB_LANGNAME ) { - hb_retc_buffer( hb_langName() ); + char * pszName = hb_langName(); + hb_retc_buffer( pszName ); } HB_FUNC( HB_LANGERRMSG )