From ff1f5de62f8587ce16284b0d9635280dd2bbff19 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 1 Feb 2012 00:37:58 -0500 Subject: [PATCH] Don't waste memory --- gtk/gtkcolorplane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcolorplane.c b/gtk/gtkcolorplane.c index 6442034844..ea1fec545e 100644 --- a/gtk/gtkcolorplane.c +++ b/gtk/gtkcolorplane.c @@ -116,7 +116,7 @@ create_sv_surface (GtkColorPlane *plane) stride = cairo_format_stride_for_width (CAIRO_FORMAT_RGB24, width); - data = g_malloc (4 * height * stride); + data = g_malloc (height * stride); h = plane->priv->h; sf = 1.0 / (height - 1);