[cairo-commit] perf/cairo-perf-print.c

Chris Wilson ickle at kemper.freedesktop.org
Fri Jun 21 09:11:39 PDT 2013


 perf/cairo-perf-print.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 686ebd4a893d2e583d0cf11bd9f77681dbf0b21c
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Jun 21 16:58:38 2013 +0100

    cairo-perf-print: Do not free the uninitialised histogram
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

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


More information about the cairo-commit mailing list