mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
zink: use screen destructor for creation fails
this should be more robust fixes https://github.com/pal1000/mesa-dist-win/issues/155 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25663>
This commit is contained in:
parent
9bb404317e
commit
0c2045553f
1 changed files with 1 additions and 6 deletions
|
|
@ -3508,12 +3508,7 @@ zink_internal_create_screen(const struct pipe_screen_config *config, int64_t dev
|
||||||
return screen;
|
return screen;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (screen->loader_lib)
|
zink_destroy_screen(&screen->base);
|
||||||
util_dl_close(screen->loader_lib);
|
|
||||||
if (screen->threaded_submit)
|
|
||||||
util_queue_destroy(&screen->flush_queue);
|
|
||||||
|
|
||||||
ralloc_free(screen);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue