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:
Sil Vilerino 2023-12-01 13:15:35 -05:00 committed by Marge Bot
parent 7bd6a42d1f
commit 81c8e89ff8

View file

@ -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