summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2016-01-05 21:51:27 -0500
committerEmil Velikov <emil.l.velikov@gmail.com>2016-01-15 16:49:30 +0200
commit352edcd2ffeafad72f73c775545eef1997edbef7 (patch)
tree5c22d2325680d1e9fef83b5cd322e320e19081e3
parent34c94330ddf1b969569b4cb6e35a72ecf22d4ce8 (diff)
i965: 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> (cherry picked from commit 051603efd546efea9975a5109910171a2e7853a4)
-rw-r--r--src/mesa/drivers/dri/i965/intel_buffer_objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
index ff05b5cd0e..f2d68a006d 100644
--- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c
+++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
@@ -167,7 +167,7 @@ brw_delete_buffer(struct gl_context * ctx, struct gl_buffer_object *obj)
_mesa_buffer_unmap_all_mappings(ctx, obj);
drm_intel_bo_unreference(intel_obj->buffer);
- free(intel_obj);
+ _mesa_delete_buffer_object(ctx, obj);
}