aboutsummaryrefslogtreecommitdiff
path: root/src/gettext.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-12-05 14:40:30 +0100
committerGitHub <noreply@github.com>2021-12-05 14:40:30 +0100
commitff934d538c00518476c31f5df6ebc4be5ca79591 (patch)
treef4e261ef192fe4410fc1f5e56e04d8c7645d92dc /src/gettext.h
parent7a043b3ebbbf250890f39a9afecebba1cc9826a6 (diff)
downloadminetest-ff934d538c00518476c31f5df6ebc4be5ca79591.tar.xz
Fix various code & correctness issues (#11815)
Diffstat (limited to 'src/gettext.h')
-rw-r--r--src/gettext.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gettext.h b/src/gettext.h
index 67fd9244f..6225fef93 100644
--- a/src/gettext.h
+++ b/src/gettext.h
@@ -48,8 +48,7 @@ void init_gettext(const char *path, const std::string &configured_language,
extern wchar_t *utf8_to_wide_c(const char *str);
-// You must free the returned string!
-// The returned string is allocated using new
+// The returned string must be freed using delete[]
inline const wchar_t *wgettext(const char *str)
{
// We must check here that is not an empty string to avoid trying to translate it