mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Always return an allocated gchar*
Returning the literal string will cause the caller to free unallocated memory.
This commit is contained in:
parent
5937b5d542
commit
fbc183a544
@ -145,7 +145,7 @@ gchar *gnc_path_get_localedir()
|
|||||||
{
|
{
|
||||||
g_free (prefix);
|
g_free (prefix);
|
||||||
g_free (locale_subdir);
|
g_free (locale_subdir);
|
||||||
return LOCALEDIR;
|
return g_strdup (LOCALEDIR);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user