diff options
-rw-r--r-- | src/eom-print-preview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eom-print-preview.c b/src/eom-print-preview.c index f9f005f..7dc2a8a 100644 --- a/src/eom-print-preview.c +++ b/src/eom-print-preview.c @@ -732,7 +732,7 @@ create_surface_from_pixbuf (GdkPixbuf *pixbuf) format = CAIRO_FORMAT_ARGB32; cairo_stride = cairo_format_stride_for_width (format, width); - cairo_pixels = g_malloc (height * cairo_stride); + cairo_pixels = g_malloc_n (height, cairo_stride); surface = cairo_image_surface_create_for_data ((unsigned char *)cairo_pixels, format, width, height, cairo_stride); |