aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergii Romantsov <sergii.romantsov@globallogic.com>2019-07-17 15:59:28 (GMT)
committerSergii Romantsov <sergii.romantsov@globallogic.com>2019-07-22 09:39:32 (GMT)
commit253be494022c415b766eff47560b80ba7b577a02 (patch)
tree79ab9b5c089c7dbef8031e650c618f6c72b92a00
parent915abbe932ebe0b5859dc871cb3bac8703b5823c (diff)
downloadexternal_mesa3d-253be494022c415b766eff47560b80ba7b577a02.zip
external_mesa3d-253be494022c415b766eff47560b80ba7b577a02.tar.gz
external_mesa3d-253be494022c415b766eff47560b80ba7b577a02.tar.bz2
i965: free object labels when deleting
Some leaks detected with GL_KHR_debug on i965. CC: Timothy Arceri <t_arceri@yahoo.com.au> Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-rw-r--r--src/mesa/drivers/dri/i965/brw_queryobj.c1
-rw-r--r--src/mesa/drivers/dri/i965/brw_sync.c1
-rw-r--r--src/mesa/drivers/dri/i965/gen6_sol.c1
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 1fb809c..c6bd571 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 6391648..d5e2d07 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 a2d2606..1d5f26a 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);
}