summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-12-07 10:31:27 -0800
committerEric Anholt <[email protected]>2018-12-07 16:48:23 -0800
commit7f8d8b7d27868037a146f7fca04fef56b29bb85e (patch)
treec904840a0f92e3121179d3639b81f3d71427b9ed /src
parent3bd73d31a862fd1e198a7c83ec656a4a376c593a (diff)
vc4: Fix a leak of the transfer helper on screen destroy.
Fixes: d009463a6549 ("vc4: Switch to using u_transfer_helper for MSAA maps.")
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index 14ee6cf09e5..e7f7c82c271 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -33,6 +33,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>
@@ -110,6 +111,8 @@ vc4_screen_destroy(struct pipe_screen *pscreen)
vc4_simulator_destroy(screen);
#endif
+ u_transfer_helper_destroy(pscreen->transfer_helper);
+
close(screen->fd);
ralloc_free(pscreen);
}