drm: Don't leak planes

icc-effect-master
Aleix Pol 2020-04-08 16:12:03 +02:00
parent fa654bda59
commit 16fe8dbd88
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ void DrmBackend::openDrm()
// create the plane objects
for (unsigned int i = 0; i < planeResources->count_planes; ++i) {
drmModePlane *kplane = drmModeGetPlane(m_fd, planeResources->planes[i]);
DrmScopedPointer<drmModePlane> kplane(drmModeGetPlane(m_fd, planeResources->planes[i]));
DrmPlane *p = new DrmPlane(kplane->plane_id, m_fd);
if (p->atomicInit()) {
m_planes << p;