[PATCH weston] compositor-drm: Add missing drmModeFreeResources in drm_device_is_kms
Sergi Granell
xerpi.g.12 at gmail.com
Tue Mar 28 10:44:04 UTC 2017
Signed-off-by: Sergi Granell <xerpi.g.12 at gmail.com>
---
libweston/compositor-drm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 4cb27b1d..3f7e97e6 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -3055,6 +3055,8 @@ drm_device_is_kms(struct drm_backend *b, struct udev_device *device)
b->drm.id = id;
b->drm.filename = strdup(filename);
+ drmModeFreeResources(res);
+
return true;
out_res:
--
2.12.2
More information about the wayland-devel
mailing list