[gimp/gtk3-port: 74/227] app: forgot to remove a cairo_destroy() in draw()



commit 9fabca1b3d1e2ec65c197d966a96302baae1e32b
Author: Michael Natterer <mitch gimp org>
Date:   Thu Oct 21 13:35:09 2010 +0200

    app: forgot to remove a cairo_destroy() in draw()

 app/widgets/gimphistogramview.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/app/widgets/gimphistogramview.c b/app/widgets/gimphistogramview.c
index b35b024..1b7bbb2 100644
--- a/app/widgets/gimphistogramview.c
+++ b/app/widgets/gimphistogramview.c
@@ -317,10 +317,7 @@ gimp_histogram_view_draw (GtkWidget *widget,
   cairo_stroke (cr);
 
   if (! view->histogram && ! view->bg_histogram)
-    {
-      cairo_destroy (cr);
-      return FALSE;
-    }
+    return FALSE;
 
   x1 = CLAMP (MIN (view->start, view->end), 0, 255);
   x2 = CLAMP (MAX (view->start, view->end), 0, 255);


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