Destroy cairo context after painting css image url

This commit is contained in:
Paolo Borelli 2012-01-14 11:52:48 +01:00
parent e0efeba27e
commit 9ad78370eb

View File

@ -92,6 +92,7 @@ gtk_css_image_url_parse (GtkCssImage *image,
cr = cairo_create (url->surface);
gdk_cairo_set_source_pixbuf (cr, pixbuf, 0, 0);
cairo_paint (cr);
cairo_destroy (cr);
g_object_unref (pixbuf);
return TRUE;