diff --git a/libgnucash/core-utils/gnc-path.c b/libgnucash/core-utils/gnc-path.c index 99adef2799..b6404f5bbc 100644 --- a/libgnucash/core-utils/gnc-path.c +++ b/libgnucash/core-utils/gnc-path.c @@ -145,7 +145,7 @@ gchar *gnc_path_get_localedir() { g_free (prefix); g_free (locale_subdir); - return LOCALEDIR; + return g_strdup (LOCALEDIR); } else {