mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-30 02:39:59 +00:00
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:
parent
5ade87efc7
commit
58143b96fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue