From 660a7ffdbade6ea0854df881ce316cfc64500826 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 30 Jun 2014 16:19:05 +0100 Subject: [PATCH] testdisplay: Destroy the cairo context once the fb is painted Signed-off-by: Damien Lespiau --- tests/testdisplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testdisplay.c b/tests/testdisplay.c index f60e66d5..3bf61336 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -314,6 +314,8 @@ static void paint_output_info(struct connector *c, struct igt_fb *fb) paint_image(cr, IGT_DATADIR"/pass.png"); igt_assert(!cairo_status(cr)); + + cairo_destroy(cr); } static void sighandler(int signo)