From 472e8a70c227807cf77db13d460e695d82b300ae Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Tue, 16 Oct 2012 17:34:36 +0300 Subject: [PATCH] flip_test: free FBs after each test run Though the FBs will be freed implicitly at process exit, with the growing number of test cases it's probably better not to let them accumulate and free them as soon as we can. Signed-off-by: Imre Deak Signed-off-by: Daniel Vetter --- tests/flip_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/flip_test.c b/tests/flip_test.c index 3103589a..d018c50c 100644 --- a/tests/flip_test.c +++ b/tests/flip_test.c @@ -525,6 +525,9 @@ static void flip_mode(struct test_output *o, int crtc, int duration) fprintf(stdout, "\npage flipping on crtc %d, connector %d: PASSED\n", crtc, o->id); + kmstest_remove_fb(drm_fd, o->fb_ids[1]); + kmstest_remove_fb(drm_fd, o->fb_ids[0]); + drmModeFreeEncoder(o->encoder); drmModeFreeConnector(o->connector); }