diff options
author | Yevhenii Kolesnikov <[email protected]> | 2019-07-26 17:30:55 +0300 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-07-31 22:16:42 +0000 |
commit | 830a8e6c47a261193be72235370e358df9e9da46 (patch) | |
tree | c79e99da68d9348d1ee04b32092de48e27db2807 /src/mesa/state_tracker | |
parent | b61f17d3627bfcc51844e5a55a3e9a9a546007e0 (diff) |
state_tracker: Free Labels for querry and tranform_feedback
Memory leaks were observed on iris with GL_KHR_debug.
Signed-off-by: Yevhenii Kolesnikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_queryobj.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_cb_xformfb.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryobj.c index 460c3e71ff9..9694876cd64 100644 --- a/src/mesa/state_tracker/st_cb_queryobj.c +++ b/src/mesa/state_tracker/st_cb_queryobj.c @@ -86,6 +86,7 @@ st_DeleteQuery(struct gl_context *ctx, struct gl_query_object *q) free_queries(pipe, stq); + free(q->Label); free(stq); } diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c index 4be9a7f659e..e591c58d2b7 100644 --- a/src/mesa/state_tracker/st_cb_xformfb.c +++ b/src/mesa/state_tracker/st_cb_xformfb.c @@ -100,6 +100,7 @@ st_delete_transform_feedback(struct gl_context *ctx, _mesa_reference_buffer_object(ctx, &sobj->base.Buffers[i], NULL); } + free(obj->Label); free(obj); } |