gdatetime: Fix a minor leak on changing locale

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
This commit is contained in:
Philip Withnall 2023-11-04 00:45:53 +00:00 committed by Philip Withnall
parent 454064f82d
commit 09fe2aa78d

View File

@ -3042,6 +3042,7 @@ format_number (GString *str,
if (alt_digits == NULL)
alt_digits = ascii_digits;
g_free (alt_digits_locale);
alt_digits_locale = g_strdup (current_ctype_locale);
}