modesetting: don't leak memory for the cursor plane if libdrm is too old

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111 2025-12-01 21:46:15 +02:00 • committed by Enrico Weigelt
commit 58143b96fd

View file

@ -2685,9 +2685,9 @@ drmmode_crtc_create_planes(xf86CrtcPtr crtc, int num)
/* Get the SIZE_HINT dimensions, if supported. */
int size_hint = drmmode_prop_get_value(&tmp_props[DRMMODE_PLANE_SIZE_HINTS], props, 0);
drmmode_populate_cursor_size_hints(drmmode, drmmode_crtc, size_hint);
#endif
drmModeFreePlane(kplane);
drmModeFreeObjectProperties(props);
#endif
continue;
}
case DRMMODE_PLANE_TYPE_PRIMARY: