aboutsummaryrefslogtreecommitdiffstats
path: root/libgnomecanvas
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 /libgnomecanvas
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 'libgnomecanvas')
-rw-r--r--libgnomecanvas/gnome-canvas-pixbuf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgnomecanvas/gnome-canvas-pixbuf.c b/libgnomecanvas/gnome-canvas-pixbuf.c
index 32e83bbe1d..910b61b8e7 100644
--- a/libgnomecanvas/gnome-canvas-pixbuf.c
+++ b/libgnomecanvas/gnome-canvas-pixbuf.c
@@ -280,8 +280,10 @@ gnome_canvas_pixbuf_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
cr = gdk_cairo_create (drawable);
gnome_canvas_item_i2c_matrix (item, &matrix);
- if (cairo_matrix_invert (&matrix))
+ if (cairo_matrix_invert (&matrix)) {
+ cairo_destroy (cr);
return;
+ }
cairo_transform (cr, &matrix);
gdk_cairo_set_source_pixbuf (cr, priv->pixbuf, 0, 0);