vc4: Fix a leak of the transfer helper on screen destroy.
Fixes: d009463a65 ("vc4: Switch to using u_transfer_helper for MSAA maps.")
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user