diff options
author | Nicolai Hähnle <[email protected]> | 2016-01-05 21:51:13 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-01-07 17:07:09 -0500 |
commit | 1b74c02e83c59a51f155b64de0444ea3df183af6 (patch) | |
tree | 7335331c77a7c4a1c0d320a810c16eaa16ebe18e /src/mesa/drivers/dri/i915 | |
parent | 8882b46226152733960ae006e3856baf00aa71f3 (diff) |
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 <[email protected]>
Cc: "11.0 11.1" <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_buffer_objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |