[evolution/gtk3] Remove forgotten cairo_destroy() calls
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gtk3] Remove forgotten cairo_destroy() calls
- Date: Mon, 20 Dec 2010 14:09:56 +0000 (UTC)
commit 93482e10ef5b55b554863de56173cfba1234d3cd
Author: Milan Crha <mcrha redhat com>
Date: Mon Dec 20 15:09:24 2010 +0100
Remove forgotten cairo_destroy() calls
calendar/gui/e-meeting-time-sel.c | 4 ++--
libgnomecanvas/gnome-canvas-pixbuf.c | 1 -
widgets/table/e-table-header-utils.c | 2 --
3 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index 595c8a3..803d25a 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -925,8 +925,8 @@ e_meeting_time_selector_expose_key_color (GtkWidget *darea,
allocation.width - 2, allocation.height - 2);
cairo_fill (cr);
- cairo_destroy (cr);
- cairo_destroy (window_cr);
+ cairo_destroy (cr);
+ cairo_destroy (window_cr);
return TRUE;
}
diff --git a/libgnomecanvas/gnome-canvas-pixbuf.c b/libgnomecanvas/gnome-canvas-pixbuf.c
index 3cfefdb..d377351 100644
--- a/libgnomecanvas/gnome-canvas-pixbuf.c
+++ b/libgnomecanvas/gnome-canvas-pixbuf.c
@@ -279,7 +279,6 @@ gnome_canvas_pixbuf_draw (GnomeCanvasItem *item, cairo_t *cr,
gnome_canvas_item_i2c_matrix (item, &matrix);
if (cairo_matrix_invert (&matrix)) {
- cairo_destroy (cr);
return;
}
cairo_transform (cr, &matrix);
diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c
index 8e7308e..47fa422 100644
--- a/widgets/table/e-table-header-utils.c
+++ b/widgets/table/e-table-header-utils.c
@@ -289,7 +289,6 @@ e_table_header_draw_button (cairo_t *cr, ETableCol *ecol,
inner_height = button_height - 2 * (ythick + HEADER_PADDING);
if (inner_width < 1 || inner_height < 1) {
- cairo_destroy (cr);
return; /* nothing fits */
}
@@ -315,7 +314,6 @@ e_table_header_draw_button (cairo_t *cr, ETableCol *ecol,
}
if (inner_width < 1) {
- cairo_destroy (cr);
return; /* nothing else fits */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]