diff options
author | Sergii Romantsov <[email protected]> | 2019-07-17 18:59:28 +0300 |
---|---|---|
committer | Sergii Romantsov <[email protected]> | 2019-07-22 12:39:32 +0300 |
commit | 253be494022c415b766eff47560b80ba7b577a02 (patch) | |
tree | 79ab9b5c089c7dbef8031e650c618f6c72b92a00 /src/mesa/drivers/dri | |
parent | 915abbe932ebe0b5859dc871cb3bac8703b5823c (diff) |
i965: free object labels when deleting
Some leaks detected with GL_KHR_debug on i965.
CC: Timothy Arceri <[email protected]>
Signed-off-by: Sergii Romantsov <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_queryobj.c | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sync.c | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_sol.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c index 1fb809cab8f..c6bd57130de 100644 --- a/src/mesa/drivers/dri/i965/brw_queryobj.c +++ b/src/mesa/drivers/dri/i965/brw_queryobj.c @@ -239,6 +239,7 @@ brw_delete_query(struct gl_context *ctx, struct gl_query_object *q) struct brw_query_object *query = (struct brw_query_object *)q; brw_bo_unreference(query->bo); + free(query->Base.Label); free(query); } diff --git a/src/mesa/drivers/dri/i965/brw_sync.c b/src/mesa/drivers/dri/i965/brw_sync.c index 63916488791..d5e2d079380 100644 --- a/src/mesa/drivers/dri/i965/brw_sync.c +++ b/src/mesa/drivers/dri/i965/brw_sync.c @@ -354,6 +354,7 @@ brw_gl_delete_sync(struct gl_context *ctx, struct gl_sync_object *_sync) struct brw_gl_sync *sync = (struct brw_gl_sync *) _sync; brw_fence_finish(&sync->fence); + free(sync->gl.Label); free(sync); } diff --git a/src/mesa/drivers/dri/i965/gen6_sol.c b/src/mesa/drivers/dri/i965/gen6_sol.c index a2d2606a35d..1d5f26ab0c0 100644 --- a/src/mesa/drivers/dri/i965/gen6_sol.c +++ b/src/mesa/drivers/dri/i965/gen6_sol.c @@ -218,6 +218,7 @@ brw_delete_transform_feedback(struct gl_context *ctx, brw_bo_unreference(brw_obj->offset_bo); brw_bo_unreference(brw_obj->prim_count_bo); + free(obj->Label); free(brw_obj); } |