Message ID | 1350398096-3649-3-git-send-email-imre.deak@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tests/flip_test.c b/tests/flip_test.c index 3103589..d018c50 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); }
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> --- tests/flip_test.c | 3 +++ 1 file changed, 3 insertions(+)