Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm_preview: fix unreleased resources and a typo
In DrmPreview::findCrtc() a series of drmModeGet*() functions is used. Those functions actually allocate memory that needs to be released with the corresponding drmModeFree*() call. In some cases resources are not freed causing a memory leak which can be confirmed with Valgrind. Free all the allocated resources before losing the pointer. Also fix a clear typo. Signed-off-by: Luca Magrone <[email protected]>
- Loading branch information