libgimpbase: fix leak from commit 2f76be13cb.

This commit is contained in:
Jehan 2026-03-24 20:18:33 +01:00
parent 63a57d68cb
commit 78de1080ce

View file

@ -205,6 +205,7 @@ gimp_choice_add (GimpChoice *choice,
{
choice->keys = g_list_remove_link (choice->keys, duplicate);
g_free (duplicate->data);
g_list_free (duplicate);
}
choice->keys = g_list_append (choice->keys, g_strdup (nick));
}