vc4: Fix a leak of the transfer helper on screen destroy.
authorEric Anholt <eric@anholt.net>
Fri, 7 Dec 2018 18:31:27 +0000 (10:31 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 8 Dec 2018 00:48:23 +0000 (16:48 -0800)
Fixes: d009463a6549 ("vc4: Switch to using u_transfer_helper for MSAA maps.")
src/gallium/drivers/vc4/vc4_screen.c

index 14ee6cf09e5ec4932a8f9661a23e9d1c7141b193..e7f7c82c271c24a8ef02d3e6d9a37b340d3fd863 100644 (file)
@@ -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);
 }