Skip to content
Commit bb55d863 authored by Marius Vlad's avatar Marius Vlad Committed by Simon Ser
Browse files

backend-drm/drm-gbm: gbm_device_destroy on an invalid gbm device



When EGL initialization fails (failure to create a GLES3 or GLES2
context) we will end up calling gbm_device_destroy() twice, once
in init_egl() and once in the drm_backend_create() error path.

Given that we should also take care of properly destroying the gbm
device when we don't have any inputs for instance, mark the gbm device
as NULL to avoid calling gbm_device_destroy() once more when destroying
the DRM-backend.

Signed-off-by: default avatarMarius Vlad <marius.vlad@collabora.com>
parent 3c5e6c53
Loading
Loading
Loading
Pipeline #482380 passed with stages
in 4 minutes and 58 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment