[gnome-photos] gegl-gtk-view-helper: Fix vertical stripes in the rendered image



commit c2c2cf1d6da9e9e60efffebb2696329872e8e0b7
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jul 18 15:37:06 2014 +0200

    gegl-gtk-view-helper: Fix vertical stripes in the rendered image
    
    Fixes: https://bugzilla.gnome.org/733355

 src/gegl-gtk-view-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gegl-gtk-view-helper.c b/src/gegl-gtk-view-helper.c
index e493e48..4d0afa9 100644
--- a/src/gegl-gtk-view-helper.c
+++ b/src/gegl-gtk-view-helper.c
@@ -248,7 +248,7 @@ view_helper_draw(ViewHelper *self, cairo_t *cr, GdkRectangle *rect)
     roi.height = rect->height;
 
     stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, roi.width);
-    buf = g_malloc(stride * roi.height);
+    buf = g_malloc0(stride * roi.height);
 
     gegl_node_blit(self->node,
                    self->scale,


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