mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
vc4: Fix a leak of the transfer helper on screen destroy.
Fixes:d009463a65("vc4: Switch to using u_transfer_helper for MSAA maps.") (cherry picked from commit7f8d8b7d27) [Juan A. Suarez: resolve trivial conflicts] Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Conflicts: src/gallium/drivers/vc4/vc4_screen.c
This commit is contained in:
parent
47850ced2e
commit
8508ce0113
1 changed files with 3 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include "util/u_memory.h"
|
||||
#include "util/u_format.h"
|
||||
#include "util/u_hash_table.h"
|
||||
#include "util/u_transfer_helper.h"
|
||||
#include "util/ralloc.h"
|
||||
|
||||
#include <xf86drm.h>
|
||||
|
|
@ -109,6 +110,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue