Commit 75efb46a authored by Roland Scheidegger's avatar Roland Scheidegger Committed by Keith Packard

hw/xfree86: fix refcounting in xf86_use_hw_cursor

This is the same fix as was done in
fcdc1d78 for xf86_use_hw_cursor_argb.
Signed-off-by: default avatarRoland Scheidegger <>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <>
Signed-off-by: Keith Packard's avatarKeith Packard <>
parent df9b6f16
......@@ -461,11 +461,11 @@ xf86_use_hw_cursor (ScreenPtr screen, CursorPtr cursor)
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
xf86CursorInfoPtr cursor_info = xf86_config->cursor_info;
if (xf86_config->cursor)
FreeCursor (xf86_config->cursor, None);
xf86_config->cursor = cursor;
if (cursor->bits->width > cursor_info->MaxWidth ||
cursor->bits->height> cursor_info->MaxHeight)
return FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment