Code

drop the dummy surface prior to creating the real one
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 27 Aug 2008 21:48:50 +0000 (21:48 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 27 Aug 2008 21:48:50 +0000 (21:48 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1468 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 8019d7fc221402f6e67960ac639a42b3d13f699b..6f1a1ac15ea5295d895a83871431119c43ab81e4 100644 (file)
@@ -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);