drm: Don't leak planes
This commit is contained in:
parent
fa654bda59
commit
16fe8dbd88
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ void DrmBackend::openDrm()
|
||||||
|
|
||||||
// create the plane objects
|
// create the plane objects
|
||||||
for (unsigned int i = 0; i < planeResources->count_planes; ++i) {
|
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);
|
DrmPlane *p = new DrmPlane(kplane->plane_id, m_fd);
|
||||||
if (p->atomicInit()) {
|
if (p->atomicInit()) {
|
||||||
m_planes << p;
|
m_planes << p;
|
||||||
|
|
Loading…
Reference in a new issue