i915: use _mesa_delete_buffer_object
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Jan 2016 02:51:13 +0000 (21:51 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 7 Jan 2016 22:07:09 +0000 (17:07 -0500)
commit1b74c02e83c59a51f155b64de0444ea3df183af6
tree7335331c77a7c4a1c0d320a810c16eaa16ebe18e
parent8882b46226152733960ae006e3856baf00aa71f3
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 <marek.olsak@amd.com>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/intel_buffer_objects.c