From 830a8e6c47a261193be72235370e358df9e9da46 Mon Sep 17 00:00:00 2001 From: Yevhenii Kolesnikov Date: Fri, 26 Jul 2019 17:30:55 +0300 Subject: [PATCH] state_tracker: Free Labels for querry and tranform_feedback MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Memory leaks were observed on iris with GL_KHR_debug. Signed-off-by: Yevhenii Kolesnikov Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_cb_queryobj.c | 1 + src/mesa/state_tracker/st_cb_xformfb.c | 1 + 2 files changed, 2 insertions(+) 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); } -- 2.30.2