diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-11-09 22:25:27 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-11-10 11:04:28 +0000 |
commit | 6f4216232921370e513e56d38cf894c94ae63fa6 (patch) | |
tree | 2885205a46e8ee92a2cd3a7f8728de801955a58b /src | |
parent | db54673b54ee7e2c49d5aa6f77d2fff3eed0aa24 (diff) |
st/mesa: Destroy buffer object's mutex.
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.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bufferobjects.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 8afd336779f..5d20b26d26e 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); } |