[gimp] Bug 755487 - redundant g_object_unref crashes GIMP
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 755487 - redundant g_object_unref crashes GIMP
- Date: Wed, 23 Sep 2015 19:53:45 +0000 (UTC)
commit 6fe0a42c5d7c643bf1d0ac781dfa5a60f428328b
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 23 21:51:37 2015 +0200
Bug 755487 - redundant g_object_unref crashes GIMP
Remove redundant g_object_unref() from gimp_image_parasite_attach().
app/core/gimpimage.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 206e7f6..c8542c8 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -3342,10 +3342,7 @@ gimp_image_parasite_attach (GimpImage *image,
builtin = gimp_image_get_builtin_color_profile (image);
if (gimp_color_profile_is_equal (profile, builtin))
- {
- gimp_image_parasite_detach (image, GIMP_ICC_PROFILE_PARASITE_NAME);
- g_object_unref (profile);
- }
+ gimp_image_parasite_detach (image, GIMP_ICC_PROFILE_PARASITE_NAME);
g_object_unref (profile);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]