[gtk+/wip/colorchooser-v2: 15/40] Don't waste memory



commit fcbbf194b92999cc915dd3839d747d13121540a5
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 1 00:37:58 2012 -0500

    Don't waste memory

 gtk/gtkcolorplane.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcolorplane.c b/gtk/gtkcolorplane.c
index 6442034..ea1fec5 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]