[gimp/gtk3-port: 70/233] app: forgot to remove a cairo_destroy() in draw()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 70/233] app: forgot to remove a cairo_destroy() in draw()
- Date: Sat, 28 Apr 2018 01:07:36 +0000 (UTC)
commit 5323fae6d4aea8cad6e66386871d90bfcd7bdb48
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 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/app/widgets/gimphistogramview.c b/app/widgets/gimphistogramview.c
index 36be315..9adff0d 100644
--- a/app/widgets/gimphistogramview.c
+++ b/app/widgets/gimphistogramview.c
@@ -316,10 +316,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, view->n_bins - 1);
x2 = CLAMP (MAX (view->start, view->end), 0, view->n_bins - 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]