aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-02 18:16:48 +0800
committerMilan Crha <mcrha@redhat.com>2010-11-02 18:17:51 +0800
commitc2b2e863cb97b6203b1be955a52096166462da8e (patch)
tree6cfccc1851f2e3efc94d56f6c887c3f6d1f4da8d /widgets/table
parentab652afc604c95992ad3d27f18a7d02fd99946da (diff)
downloadgsoc2013-evolution-c2b2e863cb97b6203b1be955a52096166462da8e.tar
gsoc2013-evolution-c2b2e863cb97b6203b1be955a52096166462da8e.tar.gz
gsoc2013-evolution-c2b2e863cb97b6203b1be955a52096166462da8e.tar.bz2
gsoc2013-evolution-c2b2e863cb97b6203b1be955a52096166462da8e.tar.lz
gsoc2013-evolution-c2b2e863cb97b6203b1be955a52096166462da8e.tar.xz
gsoc2013-evolution-c2b2e863cb97b6203b1be955a52096166462da8e.tar.zst
gsoc2013-evolution-c2b2e863cb97b6203b1be955a52096166462da8e.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);