--- gnome-photos-3.19.4/src/photos-print-preview.c.orig 2016-02-12 15:27:50.015822517 -0500 +++ gnome-photos-3.19.4/src/photos-print-preview.c 2016-02-12 15:28:03.965903571 -0500 @@ -739,7 +739,7 @@ create_surface_from_pixbuf (GdkPixbuf *p 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);