From 8c8e4fd5c60d4b09d7e4153c83560f0668c3a80d Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 6 Nov 2019 15:49:43 +0100 Subject: [PATCH] panfrost: Destroy the upload manager allocated in panfrost_create_context() pipe->stream_uploader has been allocated with u_upload_create_default() in panfrost_create_context(), let's destroy it in the context destroy path. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 14996b61661..46fce94eff5 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2448,6 +2448,8 @@ panfrost_destroy(struct pipe_context *pipe) if (panfrost->blitter_wallpaper) util_blitter_destroy(panfrost->blitter_wallpaper); + u_upload_destroy(pipe->stream_uploader); + ralloc_free(pipe); } -- 2.30.2