summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74d0a36)
raw | patch | inline | side by side (parent: 74d0a36)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 1 Aug 2007 15:29:09 +0000 (15:29 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 1 Aug 2007 15:29:09 +0000 (15:29 +0000) |
program/src/rrd_graph.c | patch | blob | history |
index e295397e3caa9458642577e4e7e4b755d26c2c47..d6568f359cf522ebc056ff83f0dab97a7bdfa0af 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
image_desc_t *im)
{
unsigned long i, ii;
- cairo_status_t status;
+ cairo_status_t status = 0;
if (im == NULL)
return 0;
if (im->font_options)
cairo_font_options_destroy(im->font_options);
- status = cairo_status(im->cr);
-
- if (im->cr)
+ if (im->cr) {
+ status = cairo_status(im->cr);
cairo_destroy(im->cr);
+ }
if (im->surface)
cairo_surface_destroy(im->surface);
if (status)