weston/libweston/backend-drm
Leandro Ribeiro bb33f90658 drm-backend: free old connector props before replacing it with newer data
In commit c1e89ba2 "compositor-drm: move connector fields into
drm_head" the function drm_head_assign_connector_info() was
introduced. By that time it was being used only at drm_head
creation, and not to handle connector changes.

In d2e6242e "compositor-drm: create heads for all connectors"
it started to be used also to handle connector changes. In
this scenario we replace old connector props with newer data.
Before doing this, free the old connector data to avoid memory
leak.

Note that as drm_property_info_free() is safe to be called on
a zero-initialized struct, we can call it even in the case where
the head is being created and there are no props yet.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
2020-09-16 14:03:18 +00:00
..
drm-gbm.c drm: Introduce drm_plane_reset_state() helper function 2020-08-17 09:44:45 +00:00
drm-internal.h drm-backend: drop unused_crtcs from struct drm_backend 2020-09-07 13:04:06 -03:00
drm-virtual.c drm-backend: move CRTC data from struct drm_output to new struct drm_crtc 2020-09-07 12:39:10 -03:00
drm.c drm-backend: free old connector props before replacing it with newer data 2020-09-16 14:03:18 +00:00
fb.c backend-drm: remove unecessary ifdef checks 2019-11-23 09:57:52 +00:00
kms.c drm-backend: drop unused_crtcs from struct drm_backend 2020-09-07 13:04:06 -03:00
libbacklight.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build backend-drm: the GL renderer is a hard requirement for DRM virtual outputs 2020-08-17 10:12:54 +00:00
modes.c backend-drm: Parse KMS panel orientation property, apply to weston_head 2020-03-06 21:50:38 +00:00
state-helpers.c drm: Introduce drm_plane_reset_state() helper function 2020-08-17 09:44:45 +00:00
state-propose.c drm-backend: cosmetic changes to make the code easier to read 2020-09-07 13:08:18 -03:00
vaapi-recorder.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00