Skip to content

glx: Ensure configs isn't NULL in driDestroyConfigs

What does this MR do and why?

glx: Ensure configs isn't NULL in driDestroyConfigs

Because of recent changes, driver_configs is now part of glx_screen and
initialized in dri_screen_init.

However, dri_screen_init can error out before assigning driver_configs,
effectively making driDestroyConfigs be called with NULL and cause
a crash.

This address this by guarding against NULL in driDestroyConfigs (like
driDestroyScreen).

Signed-off-by: Mary Guillemard <mary@mary.zone>
Fixes: 39fe5a5dac7b ("glx: move driver_configs to base glx_screen")

Merge request reports

Loading