zink: reorder create_stream_output_target to fix failure case leak

Graphics / Mesa 3D Graphics Library / Mesa - Mike Blumenkrantz [gmail.com] - 24 September 2020 20:55 UTC

the previous version of this leaked a reference to the streamout buffer here

thanks to deltragon on my blog for pointing this out!

Fixes: 37778fcd9a35 ("zink: implement transform feedback support to finish off opengl 3.0")

7971918924d zink: reorder create_stream_output_target to fix failure case leak
src/gallium/drivers/zink/zink_context.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share