libgimpbase: fix crash caused by the previous commit

In other cases we need to free value, but in this case it was used and
trying to free it caused a GIMP to crash.
Let's duplicate value, so we don't need to special case our g_free.
This commit is contained in:
Jacob Boerema 2022-06-02 17:45:13 -04:00
parent 3138fe5158
commit 5cf1ec62b4
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ gimp_metadata_deserialize_text (GMarkupParseContext *context,
else else
{ {
values = g_renew (gchar *, values, length + 2); values = g_renew (gchar *, values, length + 2);
values[length] = value; values[length] = g_strdup (value);
values[length + 1] = NULL; values[length + 1] = NULL;
gexiv2_metadata_try_set_tag_multiple (g2_metadata, gexiv2_metadata_try_set_tag_multiple (g2_metadata,