From: Eric Anholt Date: Fri, 7 Dec 2018 18:30:09 +0000 (-0800) Subject: v3d: Fix a leak of the transfer helper on screen destroy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bd73d31a862fd1e198a7c83ec656a4a376c593a;p=mesa.git v3d: Fix a leak of the transfer helper on screen destroy. Fixes: 7a30517cce8f ("broadcom/vc5: Start adding support for rendering to Z32F_S8X24_UINT.") --- 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);