(load_codepages_list_from_file): fix memory leak in free_codepages_list().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2023-09-10 14:02:47 +03:00
parent 4077522b2b
commit 1c81987cf6

View File

@ -136,6 +136,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);
g_ptr_array_add (*list, new_codepage_desc (id, p));
}
else