From: Boris Brezillon Date: Wed, 6 Nov 2019 14:49:43 +0000 (+0100) Subject: panfrost: Destroy the upload manager allocated in panfrost_create_context() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c8e4fd5c60d4b09d7e4153c83560f0668c3a80d;p=mesa.git 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 --- 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); }