mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 21:20:14 +01:00
pipe-loader: Don't destroy the winsys in the sw loader
The screen takes ownership of the winsys, and is responsible for destroying it. Users of pipe-loader should make sure they destory and screens they've created to avoid memory leaks. This fixes a crash in clover introduced byce6c17c083where the pipe-loader was destroying the winsys while a screen was still using it. Cc: "10.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commitc650033b86)
This commit is contained in:
parent
af47859aed
commit
03673bcf6c
1 changed files with 0 additions and 3 deletions
|
|
@ -145,9 +145,6 @@ pipe_loader_sw_release(struct pipe_loader_device **dev)
|
|||
{
|
||||
struct pipe_loader_sw_device *sdev = pipe_loader_sw_device(*dev);
|
||||
|
||||
if (sdev->ws && sdev->ws->destroy)
|
||||
sdev->ws->destroy(sdev->ws);
|
||||
|
||||
if (sdev->lib)
|
||||
util_dl_close(sdev->lib);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue