[PATCH] rotate: clear the filter and parameters upon destroy
Chris Wilson
chris at chris-wilson.co.uk
Thu Aug 25 08:28:26 PDT 2011
Failure to clear the filter results us in attempting to use the stale
pointers after server reset.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
hw/xfree86/modes/xf86Rotate.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/hw/xfree86/modes/xf86Rotate.c b/hw/xfree86/modes/xf86Rotate.c
index ebf93d3..c8d6147 100644
--- a/hw/xfree86/modes/xf86Rotate.c
+++ b/hw/xfree86/modes/xf86Rotate.c
@@ -313,6 +313,13 @@ xf86RotateDestroy (xf86CrtcPtr crtc)
DamageDestroy (xf86_config->rotation_damage);
xf86_config->rotation_damage = NULL;
}
+
+ free(crtc->params);
+ crtc->params = NULL;
+ crtc->nparams = 0;
+ crtc->filter = NULL;
+ crtc->filter_width = 0;
+ crtc->filter_height = 0;
}
void
--
1.7.5.4
More information about the xorg-devel
mailing list