[gimp] libgimpconfig: free a GimpValueArray on deserialization failure.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpconfig: free a GimpValueArray on deserialization failure.
- Date: Sat, 21 Aug 2021 17:20:27 +0000 (UTC)
commit c3e3c68a0171eb0a20ee1d99deb05e17e1ba3b15
Author: Jehan <jehan girinstud io>
Date: Sat Aug 21 19:19:23 2021 +0200
libgimpconfig: free a GimpValueArray on deserialization failure.
Thanks to Massimo.
libgimpconfig/gimpconfig-deserialize.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libgimpconfig/gimpconfig-deserialize.c b/libgimpconfig/gimpconfig-deserialize.c
index 431143ccf6..d9d22fa403 100644
--- a/libgimpconfig/gimpconfig-deserialize.c
+++ b/libgimpconfig/gimpconfig-deserialize.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]