iris: Destroy transfer helper on screen teardown
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Nov 2018 23:10:07 +0000 (15:10 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
Plugs a 16 byte leak

src/gallium/drivers/iris/iris_screen.c

index 9e1147ffc80213cc81becfbd391717d87b34d071..b5c21b094758413de32a07c80c0636649e49caa3 100644 (file)
@@ -40,6 +40,7 @@
 #include "util/debug.h"
 #include "util/u_inlines.h"
 #include "util/u_format.h"
+#include "util/u_transfer_helper.h"
 #include "util/u_upload_mgr.h"
 #include "util/ralloc.h"
 #include "drm-uapi/i915_drm.h"
@@ -459,6 +460,7 @@ iris_destroy_screen(struct pipe_screen *pscreen)
 {
    struct iris_screen *screen = (struct iris_screen *) pscreen;
    iris_bo_unreference(screen->workaround_bo);
+   u_transfer_helper_destroy(pscreen->transfer_helper);
    ralloc_free(screen);
 }