[gimp] libgimpconfig: don't unref the GFile in gimp_config_serialize_value()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpconfig: don't unref the GFile in gimp_config_serialize_value()
- Date: Wed, 12 Oct 2016 20:41:40 +0000 (UTC)
commit 1e69bbdef6d076960237a1a6302fbb8d92e24f91
Author: Michael Natterer <mitch gimp org>
Date: Wed Oct 12 22:39:31 2016 +0200
libgimpconfig: don't unref the GFile in gimp_config_serialize_value()
g_value_get_object() doesn't return a new reference, so it must
not be dropped. Fixes random crashes when a profile was chosen
in a GimpTemplate (e.g. in new image or prefs). Spotted by Elle.
libgimpconfig/gimpconfig-serialize.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/libgimpconfig/gimpconfig-serialize.c b/libgimpconfig/gimpconfig-serialize.c
index 24aa952..06efc3b 100644
--- a/libgimpconfig/gimpconfig-serialize.c
+++ b/libgimpconfig/gimpconfig-serialize.c
@@ -499,7 +499,6 @@ gimp_config_serialize_value (const GValue *value,
g_string_append (str, parse_name);
g_free (parse_name);
- g_object_unref (file);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]