drm: prevent nullptr deref during DRM backend shutdown (#218)

This commit is contained in:
André Silva 2025-11-05 15:31:59 +00:00 committed by GitHub
parent 62479232aa
commit 6d0b356758
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1565,7 +1565,8 @@ void Aquamarine::SDRMConnector::onPresent() {
}
Aquamarine::CDRMOutput::~CDRMOutput() {
backend->backend->removeIdleEvent(frameIdle);
if (backend && backend->backend)
backend->backend->removeIdleEvent(frameIdle);
connector->isPageFlipPending = false;
connector->frameEventScheduled = false;
}