mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
dri: Do not free the given screen in initScreen implementation
The given screen is already freed by the caller in case a NULL-pointer is returned by the implementation. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20663>
This commit is contained in:
parent
237e73ecca
commit
7e61696de9
1 changed files with 0 additions and 1 deletions
|
|
@ -596,7 +596,6 @@ fail:
|
|||
dri_destroy_screen_helper(screen);
|
||||
if (screen->dev)
|
||||
pipe_loader_release(&screen->dev, 1);
|
||||
FREE(screen);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue