[Intel-gfx] [PATCH i-g-t 1/2] igt_fb: Close the image file when we are done with it

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Thu Apr 30 04:27:54 PDT 2015


From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 lib/igt_fb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 6dc22bb..eed5405 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);
 }
 
 /**
-- 
2.3.5



More information about the Intel-gfx mailing list