aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-02 18:16:48 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2010-11-10 06:33:21 +0800
commit3b3b6cb0abf2bab0a145df00184fc96677870ec8 (patch)
treee17937633c7ad02a1cafaaa2c81ea6f9401ab276 /widgets/table
parent200cf8a51dcb360e0452fd985e7331906b70bb67 (diff)
downloadgsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.gz
gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.zst
gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.zip
Add forgotten cairo_destroy() calls
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-header-utils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c
index 16e0a1948c..19a493b0f4 100644
--- a/widgets/table/e-table-header-utils.c
+++ b/widgets/table/e-table-header-utils.c
@@ -290,8 +290,10 @@ e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol,
inner_width = button_width - 2 * (xthick + HEADER_PADDING);
inner_height = button_height - 2 * (ythick + HEADER_PADDING);
- if (inner_width < 1 || inner_height < 1)
+ if (inner_width < 1 || inner_height < 1) {
+ cairo_destroy (cr);
return; /* nothing fits */
+ }
inner_x = x + xthick + HEADER_PADDING;
inner_y = y + ythick + HEADER_PADDING;
@@ -314,8 +316,10 @@ e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol,
g_return_if_reached ();
}
- if (inner_width < 1)
+ if (inner_width < 1) {
+ cairo_destroy (cr);
return; /* nothing else fits */
+ }
layout = build_header_layout (widget, ecol->text);
pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END);