summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-21 16:58:38 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-21 16:59:25 +0100
commit686ebd4a893d2e583d0cf11bd9f77681dbf0b21c (patch)
treef40a774f06efa8edee4b267f48d295050bba3065 /perf
parent5589e80e2bd6b82e5730cbf6b72aaf82a66b31c0 (diff)
downloadcairo-686ebd4a893d2e583d0cf11bd9f77681dbf0b21c.tar.gz
cairo-perf-print: Do not free the uninitialised histogram
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'perf')
-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 58210b88d..d7ae1311e 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