From: Nicolai Hähnle Date: Wed, 6 Jan 2016 02:51:13 +0000 (-0500) Subject: i915: use _mesa_delete_buffer_object X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b74c02e83c59a51f155b64de0444ea3df183af6;p=mesa.git i915: use _mesa_delete_buffer_object This is more future-proof, plugs the memory leak of Label and properly destroys the buffer mutex. Reviewed-by: Marek Olšák Cc: "11.0 11.1" Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/dri/i915/intel_buffer_objects.c b/src/mesa/drivers/dri/i915/intel_buffer_objects.c index ef06743ed49..e6760964909 100644 --- a/src/mesa/drivers/dri/i915/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/i915/intel_buffer_objects.c @@ -99,7 +99,7 @@ intel_bufferobj_free(struct gl_context * ctx, struct gl_buffer_object *obj) _mesa_align_free(intel_obj->sys_buffer); drm_intel_bo_unreference(intel_obj->buffer); - free(intel_obj); + _mesa_delete_buffer_object(ctx, obj); }