mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
glsl/tests: fix memory leaks
Fixes: 09cc5f0c37 - glsl: use pipe_screen::nir_options instead of NirOptions
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36539>
This commit is contained in:
parent
385e857f75
commit
4f2b8e7713
2 changed files with 2 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ common_builtin::SetUp()
|
|||
void
|
||||
common_builtin::TearDown()
|
||||
{
|
||||
free(this->ctx.screen);
|
||||
ralloc_free(this->mem_ctx);
|
||||
this->mem_ctx = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ namespace
|
|||
|
||||
/* Store the source for printing from later assertions. */
|
||||
this->source = source;
|
||||
free(local_ctx.screen);
|
||||
}
|
||||
|
||||
// A predicate-formatter for asserting that two integers are mutually prime.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue