From: Yevhenii Kolesnikov Date: Wed, 24 Jul 2019 10:03:16 +0000 (+0300) Subject: state_tracker: Add destroying routine for feedback and select stages X-Git-Tag: upstream/19.3.0~3726 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fad848094fc5f3a16e1de3885f185e1df8b1e70b;p=platform%2Fupstream%2Fmesa.git state_tracker: Add destroying routine for feedback and select stages Fixes leaking memory on iris. Signed-off-by: Yevhenii Kolesnikov Reviewed-by: Lionel Landwerlin --- diff --git a/src/mesa/state_tracker/st_cb_feedback.c b/src/mesa/state_tracker/st_cb_feedback.c index ce236c0..54f101e 100644 --- a/src/mesa/state_tracker/st_cb_feedback.c +++ b/src/mesa/state_tracker/st_cb_feedback.c @@ -175,7 +175,7 @@ feedback_reset_stipple_counter( struct draw_stage *stage ) static void feedback_destroy( struct draw_stage *stage ) { - /* no-op */ + free(stage); } /** @@ -247,7 +247,7 @@ select_reset_stipple_counter( struct draw_stage *stage ) static void select_destroy( struct draw_stage *stage ) { - /* no-op */ + free(stage); }