Re: HMG_Upper() function causes a memory leak
Posted: Tue Jan 31, 2017 8:45 pm
Claudio
I found three more functions which do not release the buffer allocated on the heap memory (hb_xgrab):
HMG_GetUnicodeCharacter(),
HMG_UNICODE_TO_ANSI(),
HMG_ANSI_TO_UNICODE().
They also cause memory leaks. Could you check?
---
PS
And by the way, I noticed that in the file c_InitCom.c there are two functions that are not used:
WCHAR * hmg_MBtoWC ( CHAR * srcA ),
CHAR * hmg_WCtoMB ( WCHAR * srcW ).
I found three more functions which do not release the buffer allocated on the heap memory (hb_xgrab):
HMG_GetUnicodeCharacter(),
HMG_UNICODE_TO_ANSI(),
HMG_ANSI_TO_UNICODE().
They also cause memory leaks. Could you check?
---
PS
And by the way, I noticed that in the file c_InitCom.c there are two functions that are not used:
WCHAR * hmg_MBtoWC ( CHAR * srcA ),
CHAR * hmg_WCtoMB ( WCHAR * srcW ).