[gimp/blend-tool-fun: 69/163] Bug 755487 - redundant g_object_unref crashes GIMP
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/blend-tool-fun: 69/163] Bug 755487 - redundant g_object_unref crashes GIMP
- Date: Mon, 26 Oct 2015 02:24:01 +0000 (UTC)
commit daddc0b5b8a7952d1d43de83116952065f7b759e
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]