mirror of https://github.com/GNOME/gimp.git
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:
parent
3138fe5158
commit
5cf1ec62b4
|
@ -730,7 +730,7 @@ gimp_metadata_deserialize_text (GMarkupParseContext *context,
|
|||
else
|
||||
{
|
||||
values = g_renew (gchar *, values, length + 2);
|
||||
values[length] = value;
|
||||
values[length] = g_strdup (value);
|
||||
values[length + 1] = NULL;
|
||||
|
||||
gexiv2_metadata_try_set_tag_multiple (g2_metadata,
|
||||
|
|
Loading…
Reference in New Issue