mirror of
https://github.com/hyprwm/aquamarine.git
synced 2026-05-09 07:38:08 +02:00
backend: add freeDrmDevice on error in initDmabuf (#221)
This may have caused a small memory leak in some cases.
This commit is contained in:
parent
a20a0e67a3
commit
561ae7fbe1
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue