Skip to content

Commit

Permalink
Merge pull request #13568 from lrusak/gbm-memleak
Browse files Browse the repository at this point in the history
windowing/gbm: destroy property blob
  • Loading branch information
lrusak committed Apr 10, 2018
2 parents d181253 + c5b0d33 commit 76f19f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xbmc/windowing/gbm/DRMAtomic.cpp
Expand Up @@ -192,6 +192,12 @@ void CDRMAtomic::DrmAtomicCommit(int fb_id, int flags, bool rendered, bool video
}
}

if (flags & DRM_MODE_ATOMIC_ALLOW_MODESET)
{
if (drmModeDestroyPropertyBlob(m_fd, blob_id) != 0)
CLog::Log(LOGERROR, "CDRMAtomic::%s - failed to destroy property blob: %s", __FUNCTION__, strerror(errno));
}

drmModeAtomicFree(m_req);
m_req = drmModeAtomicAlloc();
}
Expand Down

0 comments on commit 76f19f6

Please sign in to comment.