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 <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Imre Deak 2012-10-16 17:34:36 +03:00 committed by Daniel Vetter
parent 21393431f1
commit 472e8a70c2

View File

@ -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);
}