[Mesa-dev] [PATCH] u_primconvert: Fix leak of the upload BO on context destroy.
Dave Airlie
airlied at gmail.com
Tue Dec 30 23:27:08 PST 2014
Reviewed-by: Dave Airlie <airlied at redhat.com>
On 31 December 2014 at 10:13, Eric Anholt <eric at anholt.net> wrote:
> ---
> src/gallium/auxiliary/indices/u_primconvert.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c
> index eba1f9e..11fceaf 100644
> --- a/src/gallium/auxiliary/indices/u_primconvert.c
> +++ b/src/gallium/auxiliary/indices/u_primconvert.c
> @@ -74,6 +74,7 @@ util_primconvert_create(struct pipe_context *pipe, uint32_t primtypes_mask)
> void
> util_primconvert_destroy(struct primconvert_context *pc)
> {
> + u_upload_destroy(pc->upload);
> util_primconvert_save_index_buffer(pc, NULL);
> FREE(pc);
> }
> --
> 2.1.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list