[gimp/metadata-wip-rebased] app: don't unref the image's metadata (fix last commit)
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-wip-rebased] app: don't unref the image's metadata (fix last commit)
- Date: Wed, 23 Oct 2013 20:54:15 +0000 (UTC)
commit 314b53ce0b119aaa07624a92fc1f8a6412152cfc
Author: Michael Natterer <mitch gimp org>
Date: Wed Oct 23 22:53:38 2013 +0200
app: don't unref the image's metadata (fix last commit)
app/xcf/xcf-load.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c
index b4b0c82..517e3e8 100644
--- a/app/xcf/xcf-load.c
+++ b/app/xcf/xcf-load.c
@@ -251,7 +251,9 @@ xcf_load_image (Gimp *gimp,
{
GimpMetadata *metadata = gimp_image_get_metadata (image);
- if (! metadata)
+ if (metadata)
+ g_object_ref (metadata);
+ else
metadata = gimp_metadata_new ();
gimp_metadata_set_from_exif (metadata,
@@ -283,7 +285,9 @@ xcf_load_image (Gimp *gimp,
{
GimpMetadata *metadata = gimp_image_get_metadata (image);
- if (! metadata)
+ if (metadata)
+ g_object_ref (metadata);
+ else
metadata = gimp_metadata_new ();
gimp_metadata_set_from_xmp (metadata,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]