[gnome-photos] gegl-gtk-view-helper: Avoid pointing to invalid memory



commit 5db509f265f640fc1075a017c0749d2b773684fa
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Feb 25 15:41:12 2014 +0100

    gegl-gtk-view-helper: Avoid pointing to invalid memory
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723664

 src/gegl-gtk-view-helper.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gegl-gtk-view-helper.c b/src/gegl-gtk-view-helper.c
index 2042893..aadd6fb 100644
--- a/src/gegl-gtk-view-helper.c
+++ b/src/gegl-gtk-view-helper.c
@@ -313,8 +313,9 @@ trigger_processing(ViewHelper *self, GeglRectangle roi)
 void
 trigger_redraw(ViewHelper *self, GeglRectangle *redraw_rect)
 {
+    GeglRectangle invalid_rect = {0, 0, -1, -1}; /* Indicates full redraw */
+
     if (!redraw_rect) {
-        GeglRectangle invalid_rect = {0, 0, -1, -1}; /* Indicates full redraw */
         redraw_rect = &invalid_rect;
     }
 


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