Commit ff1f5de6 authored by Matthias Clasen's avatar Matthias Clasen

Don't waste memory

parent 1720e8eb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment