[gimp] app: don't overallocate, a double is 64 bits not 64 bytes :)
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't overallocate, a double is 64 bits not 64 bytes :)
- Date: Sun, 9 Jun 2013 23:13:37 +0000 (UTC)
commit 48d611b5c2239a218d8edc30457b1068147edb57
Author: Michael Natterer <mitch gimp org>
Date: Mon Jun 10 01:12:06 2013 +0200
app: don't overallocate, a double is 64 bits not 64 bytes :)
app/widgets/gimpcolorframe.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpcolorframe.c b/app/widgets/gimpcolorframe.c
index b7582a8..ea40b40 100644
--- a/app/widgets/gimpcolorframe.c
+++ b/app/widgets/gimpcolorframe.c
@@ -510,7 +510,7 @@ gimp_color_frame_update (GimpColorFrame *frame)
if (frame->sample_valid)
{
const Babl *print_format = NULL;
- gpointer pixel = g_alloca (5 * 64);
+ guchar print_pixel[32];
switch (gimp_babl_format_get_precision (frame->sample_format))
{
@@ -536,9 +536,9 @@ gimp_color_frame_update (GimpColorFrame *frame)
break;
}
- gimp_rgba_get_pixel (&frame->color, print_format, pixel);
+ gimp_rgba_get_pixel (&frame->color, print_format, print_pixel);
- values = gimp_babl_print_pixel (print_format, pixel);
+ values = gimp_babl_print_pixel (print_format, print_pixel);
}
if (base_type == GIMP_GRAY)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]