v3d: Fix a leak of the transfer helper on screen destroy.

Fixes: 7a30517cce ("broadcom/vc5: Start adding support for rendering to Z32F_S8X24_UINT.")
This commit is contained in:
Eric Anholt 2018-12-07 10:30:09 -08:00
parent bad95bb13c
commit 3bd73d31a8
1 changed files with 2 additions and 0 deletions

View File

@ -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 <xf86drm.h>
@ -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);