From c317b788c09e047c951b36a4a8acbce9f8d2f03e Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Thu, 30 Apr 2015 12:27:54 +0100 Subject: [PATCH] igt_fb: Close the image file when we are done with it Signed-off-by: Tvrtko Ursulin Signed-off-by: Thomas Wood --- lib/igt_fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/igt_fb.c b/lib/igt_fb.c index fe0c63f8..cc4b8ee0 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -388,6 +388,8 @@ void igt_paint_image(cairo_t *cr, const char *filename, cairo_surface_destroy(image); cairo_restore(cr); + + fclose(f); } /**