[PATCH weston] compositor-drm: Add missing drmModeFreeResources in drm_device_is_kms

Quentin Glidic sardemff7+wayland at sardemff7.net
Thu Mar 30 23:21:51 UTC 2017


On 3/28/17 12:44 PM, Sergi Granell wrote:
> Signed-off-by: Sergi Granell <xerpi.g.12 at gmail.com>

Nice:
Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>

And pushed:
eaa73584..ceb5981a  master -> master

Thanks,

> ---
>   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:
> 


-- 

Quentin “Sardem FF7” Glidic


More information about the wayland-devel mailing list