forked from AuroraMiddleware/gtk
Don't waste memory
This commit is contained in:
parent
1720e8ebf3
commit
ff1f5de62f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user