[Mesa-dev] [PATCH] st/mesa: Destroy buffer object's mutex.
Brian Paul
brianp at vmware.com
Mon Nov 9 15:42:20 PST 2015
On 11/09/2015 04:07 PM, Jose Fonseca wrote:
> Ideally we should have a _mesa_cleanup_buffer_object function in
> src/mesa/bufferobj.c so that the destruction logic resided in a single
> place.
> ---
> src/mesa/state_tracker/st_cb_bufferobjects.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
> index 8afd336..5d20b26 100644
> --- a/src/mesa/state_tracker/st_cb_bufferobjects.c
> +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
> @@ -83,6 +83,7 @@ st_bufferobj_free(struct gl_context *ctx, struct gl_buffer_object *obj)
> if (st_obj->buffer)
> pipe_resource_reference(&st_obj->buffer, NULL);
>
> + mtx_destroy(&st_obj->Base.Mutex);
> free(st_obj->Base.Label);
> free(st_obj);
> }
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list