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

check-va-api: Clean up heap arrays automatically


Now that we're using libc-utils-internal.h, we can use its convenience
macros.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 34fbc579
Branches
Tags
1 merge request!801check-va-api: Use supported surface format + opportunistic cleanup
......@@ -418,9 +418,9 @@ main (int argc,
VADisplay va_display = NULL;
VASurfaceAttrib attr;
VAImage img;
VASurfaceID *surfaces = NULL;
autofree VASurfaceID *surfaces = NULL;
VAImageFormat image_format;
VAProfile *profiles = NULL;
autofree VAProfile *profiles = NULL;
VARectangle input_region;
VARectangle output_region;
......@@ -557,8 +557,5 @@ out:
if (display)
XCloseDisplay (display);
free (profiles);
free (surfaces);
return ret;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment