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 /libgnomecanvas | |
parent | 200cf8a51dcb360e0452fd985e7331906b70bb67 (diff) | |
download | gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.gz gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.zst gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.zip |
Add forgotten cairo_destroy() calls
Diffstat (limited to 'libgnomecanvas')
-rw-r--r-- | libgnomecanvas/gnome-canvas-pixbuf.c | 4 |
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); |