backend: add freeDrmDevice on error in initDmabuf (#221)

This may have caused a small memory leak in some cases.
This commit is contained in:
zacoons 2025-11-29 08:58:30 +10:00 committed by GitHub
parent a20a0e67a3
commit 561ae7fbe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -374,6 +374,7 @@ bool Aquamarine::CWaylandBackend::initDmabuf() {
if (!name) {
backend->log(AQ_LOG_ERROR, "zwp_linux_dmabuf_v1: no node name");
drmFreeDevice(&drmDev);
return;
}