state_tracker: Add destroying routine for feedback and select stages
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Wed, 24 Jul 2019 10:03:16 +0000 (13:03 +0300)
committerYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Fri, 26 Jul 2019 12:35:03 +0000 (15:35 +0300)
Fixes leaking memory on iris.

Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/state_tracker/st_cb_feedback.c

index ce236c05d98c00ddd954891a97ad9584986fdcae..54f101ed82ceaedee7e74c3f3495bc046745a255 100644 (file)
@@ -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);
 }