main: Fix memleaks in mesa_use_program
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Thu, 11 Jul 2019 10:00:46 +0000 (13:00 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Jul 2019 16:54:21 +0000 (16:54 +0000)
commit882fe09a74b4438cb3093ed0cd6d9525f30c3f84
tree9d8f6cd84d0fa4f514ad12f9e8d089e6fcb02f41
parentfa2fc68de132317ce63d407cef34e266c1d3e838
main: Fix memleaks in mesa_use_program

Add freeing of SubroutineIndexes to the _mesa_free_shader_state.

Fixes: 4566aaaa5b1 ("mesa/subroutines: start adding per-context
subroutine index support (v1.1)")
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/shaderapi.c