xfree86/modes: rotation damage is automatically destroyed on close
Don't try to destroy rotation_damage in the xf86RotateCloseScreen; it will have been destroyed when the screen pixmap was destroyed. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
40dc81154a
commit
61afe950e6
|
@ -309,6 +309,8 @@ xf86RotateCloseScreen(ScreenPtr screen)
|
|||
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
|
||||
int c;
|
||||
|
||||
/* This has already been destroyed when the root window was destroyed */
|
||||
xf86_config->rotation_damage = NULL;
|
||||
for (c = 0; c < xf86_config->num_crtc; c++)
|
||||
xf86RotateDestroy(xf86_config->crtc[c]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user