diff options
Diffstat (limited to 'app/wlib/mswlib/simple-gettext.c')
-rw-r--r-- | app/wlib/mswlib/simple-gettext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/wlib/mswlib/simple-gettext.c b/app/wlib/mswlib/simple-gettext.c index d213fc3..412eece 100644 --- a/app/wlib/mswlib/simple-gettext.c +++ b/app/wlib/mswlib/simple-gettext.c @@ -148,8 +148,9 @@ utf8_to_native( char *str, unsigned int len, int dummy ) /* 2. convert from UTF-8 to system codepage */ WideCharToMultiByte(CP_ACP, 0, (LPWSTR)buf, wcharLen, resBuffer, len + 1, NULL, NULL ); - free( buf ); + } + free(buf); return( resBuffer ); } |