mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-25 23:50:06 -05:00
[gnc-locale-utils.cpp] don't need to strdup locale
it's not freed later
This commit is contained in:
1 parent
be46171d02
commit
65d573889b
1 file changed
+1
-1
@@ -95,7 +95,7 @@ gnc_init_boost_locale (const std::string& messages_path)
|
||||
}
|
||||
catch (const std::runtime_error& err)
|
||||
{
|
||||
char* locale = g_strdup(setlocale(LC_ALL, ""));
|
||||
const char* locale = setlocale(LC_ALL, "");
|
||||
|
||||
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING,
|
||||
"Failed to create C++ default locale from"
|
||||
|
||||
Reference in new issue
Block a user