diff options
author | Nicolai Hähnle <[email protected]> | 2016-01-05 21:49:37 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-01-07 17:07:03 -0500 |
commit | 8882b46226152733960ae006e3856baf00aa71f3 (patch) | |
tree | f3b2f037052831526f94da1007bfbd0e10422df7 /src/mesa/drivers | |
parent | 1c2187b1c225b2f7e1891544d184bde60390977e (diff) |
radeon: 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')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_buffer_objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c index d9d4f5ffc5e..2b76305dd45 100644 --- a/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c +++ b/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c @@ -71,7 +71,7 @@ radeonDeleteBufferObject(struct gl_context * ctx, radeon_bo_unref(radeon_obj->bo); } - free(radeon_obj); + _mesa_delete_buffer_object(ctx, obj); } |