(load_codepages_list_from_file): use g_ptr_array_new_full().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-03-31 19:14:07 +03:00
parent 372f6d0d0e
commit 1c7da890bf

View File

@ -135,8 +135,7 @@ load_codepages_list_from_file (GPtrArray ** list, const char *fname)
if (*list == NULL)
{
*list = g_ptr_array_sized_new (16);
g_ptr_array_set_free_func (*list, free_codepage_desc);
*list = g_ptr_array_new_full (16, free_codepage_desc);
g_ptr_array_add (*list, new_codepage_desc (id, p));
}
else