mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 23:10:28 +01:00
d3d12: Fix screen->winsys leak in d3d12_screen
Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456>
This commit is contained in:
parent
7bd6a42d1f
commit
81c8e89ff8
1 changed files with 4 additions and 0 deletions
|
|
@ -765,6 +765,10 @@ d3d12_deinit_screen(struct d3d12_screen *screen)
|
|||
screen->dev->Release();
|
||||
screen->dev = nullptr;
|
||||
}
|
||||
if (screen->winsys) {
|
||||
screen->winsys->destroy(screen->winsys);
|
||||
screen->winsys = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue