Skip to content

frontends/dri: Return NULL when initScreen fail

Julia Zhang requested to merge Julia/mesa:upstream-dri_release_screen into main
Remove pipe_loader_release/dri_release_creen and return NULL when
initScreen fail. This is to fix the issue that following stack may
call function pipe_loader_release/dri_release_screen twice when
initScreen fail.

driCreateNewScreen2
    ->initScreen
        ->pipe_loader_release/dri_release_screen
    ->dri_destory_screen
        ->pipe_loader_release/dri_release_screen

initScreen will call pipe_loader_release/dri_release_screen which
will be called again later in dri_destroy_screen when initScreen fail.
Edited by Julia Zhang

Merge request reports