From: Kenneth Graunke Date: Wed, 28 Nov 2018 23:10:07 +0000 (-0800) Subject: iris: Destroy transfer helper on screen teardown X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d55e9a2aa213e83b971eb4d1a4205f9a403e165;p=mesa.git iris: Destroy transfer helper on screen teardown Plugs a 16 byte leak --- diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 9e1147ffc80..b5c21b09475 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -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); }