diff options
author | Milan Crha <mcrha@redhat.com> | 2010-11-02 18:16:48 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2010-11-10 06:33:21 +0800 |
commit | 3b3b6cb0abf2bab0a145df00184fc96677870ec8 (patch) | |
tree | e17937633c7ad02a1cafaaa2c81ea6f9401ab276 /widgets/text | |
parent | 200cf8a51dcb360e0452fd985e7331906b70bb67 (diff) | |
download | gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.gz gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.bz2 gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.lz gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.xz gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.zst gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.zip |
Add forgotten cairo_destroy() calls
Diffstat (limited to 'widgets/text')
-rw-r--r-- | widgets/text/e-text.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 74c9385012..cbae6d1da8 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -1443,8 +1443,10 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable, if (!text->preedit_len) reset_layout (text); - if (!pango_layout_get_text (text->layout)) + if (!pango_layout_get_text (text->layout)) { + cairo_destroy (cr); return; + } xpos = text->text_cx; ypos = text->text_cy; @@ -1514,6 +1516,8 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable, } } } + + cairo_destroy (cr); } /* Point handler for the text item */ |