backend: add freeDrmDevice on error in initDmabuf

This may have caused a small memory leak in some cases.
This commit is contained in:
zac 2025-11-29 07:29:01 +10:00
parent a20a0e67a3
commit 68986568c5

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;
}