summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-21 15:58:38 (GMT)
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-21 15:59:25 (GMT)
commit686ebd4a893d2e583d0cf11bd9f77681dbf0b21c (patch)
treef40a774f06efa8edee4b267f48d295050bba3065
parent5589e80e2bd6b82e5730cbf6b72aaf82a66b31c0 (diff)
downloadcairo-686ebd4a893d2e583d0cf11bd9f77681dbf0b21c.tar.gz
cairo-686ebd4a893d2e583d0cf11bd9f77681dbf0b21c.tar.xz
cairo-perf-print: Do not free the uninitialised histogram
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--perf/cairo-perf-print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/perf/cairo-perf-print.c b/perf/cairo-perf-print.c
index 58210b8..d7ae131 100644
--- a/perf/cairo-perf-print.c
+++ b/perf/cairo-perf-print.c
@@ -107,7 +107,8 @@ report_print (const cairo_perf_report_t *report,
test->stats.iterations, test->samples_count);
}
- _cairo_histogram_fini (&h);
+ if (show_histogram)
+ _cairo_histogram_fini (&h);
}
int