From 3bd73d31a862fd1e198a7c83ec656a4a376c593a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 7 Dec 2018 10:30:09 -0800 Subject: [PATCH] v3d: Fix a leak of the transfer helper on screen destroy. Fixes: 7a30517cce8f ("broadcom/vc5: Start adding support for rendering to Z32F_S8X24_UINT.") --- src/gallium/drivers/v3d/v3d_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index 49ea489d5ef..cfde1295ef0 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -32,6 +32,7 @@ #include "util/u_format.h" #include "util/u_hash_table.h" #include "util/u_screen.h" +#include "util/u_transfer_helper.h" #include "util/ralloc.h" #include @@ -74,6 +75,7 @@ v3d_screen_destroy(struct pipe_screen *pscreen) v3d_simulator_destroy(screen); v3d_compiler_free(screen->compiler); + u_transfer_helper_destroy(pscreen->transfer_helper); close(screen->fd); ralloc_free(pscreen); -- 2.30.2