backends/drm: Also release cursor layer buffers

This commit is contained in:
Vlad Zahorodnii 2022-05-14 20:29:53 +03:00
parent d0d642ba68
commit 6451cb2cfe

View file

@ -791,6 +791,7 @@ void DrmGpu::releaseBuffers()
}
for (const auto &pipeline : qAsConst(m_pipelines)) {
pipeline->primaryLayer()->releaseBuffers();
pipeline->cursorLayer()->releaseBuffers();
}
for (const auto &output : qAsConst(m_outputs)) {
if (const auto virtualOutput = qobject_cast<DrmVirtualOutput *>(output)) {