[gimp/soc-2010-cage-2] gimpcageconfig: solve segfault when adding 25th cage handle
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] gimpcageconfig: solve segfault when adding 25th cage handle
- Date: Sun, 15 Aug 2010 15:42:02 +0000 (UTC)
commit 37d38f596eda696407f79cd04618cf87f5fecdd4
Author: Michael Muré <batolettre gmail com>
Date: Sun Aug 15 14:53:13 2010 +0200
gimpcageconfig: solve segfault when adding 25th cage handle
app/gegl/gimpcageconfig.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/gegl/gimpcageconfig.c b/app/gegl/gimpcageconfig.c
index 0b19a99..8628dc3 100644
--- a/app/gegl/gimpcageconfig.c
+++ b/app/gegl/gimpcageconfig.c
@@ -99,7 +99,7 @@ gimp_cage_config_init (GimpCageConfig *self)
self->cage_vertices = g_new(GimpVector2, self->cage_vertices_max);
self->cage_vertices_d = g_new(GimpVector2, self->cage_vertices_max);
- self->scaling_factor = g_malloc (self->cage_vertices_max * sizeof(gfloat));
+ self->scaling_factor = g_malloc (self->cage_vertices_max * sizeof(gdouble));
self->normal_d = g_new(GimpVector2, self->cage_vertices_max);
}
@@ -171,7 +171,7 @@ gimp_cage_config_add_cage_point (GimpCageConfig *gcc,
gcc->cage_vertices_max);
gcc->scaling_factor = g_realloc (gcc->scaling_factor,
- gcc->cage_vertices_max * sizeof(gfloat));
+ gcc->cage_vertices_max * sizeof(gdouble));
gcc->normal_d = g_renew(GimpVector2,
gcc->normal_d,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]