From: Sergii Romantsov Date: Wed, 17 Jul 2019 15:59:28 +0000 (+0300) Subject: i965: free object labels when deleting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=253be494022c415b766eff47560b80ba7b577a02;p=mesa.git i965: free object labels when deleting Some leaks detected with GL_KHR_debug on i965. CC: Timothy Arceri Signed-off-by: Sergii Romantsov Reviewed-by: Lionel Landwerlin --- 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); }