From: Tobias Oetiker Date: Wed, 27 Aug 2008 21:48:50 +0000 (+0000) Subject: drop the dummy surface prior to creating the real one X-Git-Tag: 1.3.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7613a4abed214ce419d39686fb2a5c79fbb9939d;p=thirdparty%2Frrdtool-1.x.git drop the dummy surface prior to creating the real one git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1468 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 8019d7fc..6f1a1ac1 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -3059,6 +3059,7 @@ int graph_paint( (im->surface, CAIRO_SVG_VERSION_1_1); break; }; + cairo_destroy(im->cr); im->cr = cairo_create(im->surface); cairo_set_antialias(im->cr, im->graph_antialias); cairo_scale(im->cr, im->zoom, im->zoom);