From: Nicolai Hähnle Date: Wed, 6 Jan 2016 02:49:11 +0000 (-0500) Subject: st/mesa: use _mesa_delete_buffer_object X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c2187b1c225b2f7e1891544d184bde60390977e;p=mesa.git st/mesa: use _mesa_delete_buffer_object This is more future-proof than the current code. Reviewed-by: Marek Olšák Cc: "11.0 11.1" --- diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 5d20b26d26e..c75f4765b94 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c @@ -83,9 +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); + _mesa_delete_buffer_object(ctx, obj); }