mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimpconfig: free a GimpValueArray on deserialization failure.
Thanks to Massimo.
This commit is contained in:
parent
9a0876b9bd
commit
c3e3c68a01
1 changed files with 4 additions and 1 deletions
|
@ -817,7 +817,10 @@ gimp_config_deserialize_value_array (GValue *value,
|
|||
g_value_unset (&array_value);
|
||||
|
||||
if (token != G_TOKEN_RIGHT_PAREN)
|
||||
return token;
|
||||
{
|
||||
gimp_value_array_unref (array);
|
||||
return token;
|
||||
}
|
||||
}
|
||||
|
||||
g_value_take_boxed (value, array);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue