Skip to content
Snippets Groups Projects
Commit 9653b943 authored by Simon McVittie's avatar Simon McVittie
Browse files

check-va-api: Pair calls to vaDestroySurfaces() with create_surfaces()


Each test creates new surfaces and puts their IDs in the array `surfaces`,
and previously we only destroyed the surfaces created by the last test.
The result is that if we ran more than one test, the surfaces created
by earlier tests would be leaked.

For example, if the VA-API implementation does not support H264 but
does support MPEG, we would have leaked the pair of surfaces that were
created in order to test H264, but we would correctly destroy the pair
of surfaces that were created in order to test MPEG. Now we destroy both.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent f27daff0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment