[gimp] app: metadata undo: unref instead of free
- From: Hartmut Kuhse <hartmutkuhse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: metadata undo: unref instead of free
- Date: Thu, 14 Nov 2013 20:45:26 +0000 (UTC)
commit 8dc7ff4504d812dd25a62223e3edea207178f1fb
Author: Hartmut Kuhse <hk_priv gmx de>
Date: Thu Nov 14 21:45:06 2013 +0100
app: metadata undo: unref instead of free
app/core/gimpimageundo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpimageundo.c b/app/core/gimpimageundo.c
index 2faafa6..1c7d594 100644
--- a/app/core/gimpimageundo.c
+++ b/app/core/gimpimageundo.c
@@ -520,7 +520,7 @@ gimp_image_undo_free (GimpUndo *undo,
if (image_undo->metadata)
{
- g_free (image_undo->metadata);
+ g_object_unref (image_undo->metadata);
image_undo->metadata = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]