[gimp] gradient-map: Free gradient_name when done using it
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] gradient-map: Free gradient_name when done using it
- Date: Sat, 7 May 2011 01:27:57 +0000 (UTC)
commit 0654b73964f3eb0fe91ba175ae0b02c23a606d72
Author: Mukund Sivaraman <muks banu com>
Date: Sat May 7 06:44:22 2011 +0530
gradient-map: Free gradient_name when done using it
plug-ins/common/gradient-map.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/gradient-map.c b/plug-ins/common/gradient-map.c
index 8eb9f59..4b48c11 100644
--- a/plug-ins/common/gradient-map.c
+++ b/plug-ins/common/gradient-map.c
@@ -269,6 +269,8 @@ get_samples_gradient (GimpDrawable *drawable)
gimp_gradient_get_uniform_samples (gradient_name, NSAMPLES, FALSE,
&n_f_samples, &f_samples);
+ g_free (gradient_name);
+
bpp = gimp_drawable_bpp (drawable->drawable_id);
color = gimp_drawable_is_rgb (drawable->drawable_id);
has_alpha = gimp_drawable_has_alpha (drawable->drawable_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]