Don't terminate DRM display if it's null
This commit is contained in:
parent
ef20b58895
commit
347b306d21
@ -112,7 +112,8 @@ void cleanup()
|
|||||||
drmModeFreeEncoder(drmNode.savedEncoder);
|
drmModeFreeEncoder(drmNode.savedEncoder);
|
||||||
drmModeFreeCrtc(drmNode.originalCrtc);
|
drmModeFreeCrtc(drmNode.originalCrtc);
|
||||||
|
|
||||||
eglTerminate(display);
|
if (display != EGL_NO_DISPLAY)
|
||||||
|
eglTerminate(display);
|
||||||
display = EGL_NO_DISPLAY;
|
display = EGL_NO_DISPLAY;
|
||||||
|
|
||||||
gbm_device_destroy(gbmDevice);
|
gbm_device_destroy(gbmDevice);
|
||||||
|
Loading…
Reference in New Issue
Block a user