[Intel-gfx] [PATCH igt 1/4] kms_frontbuffer_tracking: add missing igt_remove_fb calls

Paulo Zanoni paulo.r.zanoni at intel.com
Thu Feb 25 16:48:28 UTC 2016


Let's be good citizens and properly handle our garbage.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 tests/kms_frontbuffer_tracking.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 26e12d0..0ea1dde 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -3070,6 +3070,8 @@ static void tilingchange_subtest(const struct test_mode *t)
 		page_flip_for_params(params, flip_type);
 		do_assertions(0);
 	}
+
+	igt_remove_fb(drm.fd, &new_fb);
 }
 
 /*
@@ -3128,6 +3130,8 @@ static void basic_subtest(const struct test_mode *t)
 		update_wanted_crc(t, &pattern->crcs[t->format][r]);
 		do_assertions(assertions);
 	}
+
+	igt_remove_fb(drm.fd, &fb2);
 }
 
 static int opt_handler(int option, int option_index, void *data)
-- 
2.7.0



More information about the Intel-gfx mailing list