Failure to clear the filter results us in attempting to use the stale
pointers after server reset.

Signed-off-by: Chris Wilson <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to