drisw: don't leak the winsys
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 10 Apr 2023 13:47:06 +0000 (09:47 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Apr 2023 13:34:15 +0000 (13:34 +0000)
commit1e6e3427f032a3ca0193d57facbd9a63b75e6a7c
tree7c31c8e8a432d69565ddd85a3269c99b73f19c1c
parent2d6527c9f15b06b556de884fa81c525cb4568a59
drisw: don't leak the winsys

if a winsys is allocated by the frontend, it should be freed by the frontend
rather than the driver to ensure it doesn't leak if it doesn't reach
the driver

cc: mesa-stable

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22396>
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/softpipe/sp_screen.c