xf86-video-intel: src/sna/sna_dri2.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Mar 16 08:29:14 UTC 2016
src/sna/sna_dri2.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 4eb2d9dc92cec2053c76df5dc923f5552fd06c9e
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Mar 16 08:27:34 2016 +0000
sna/dri2: Release the dangling chain after decoupling
After releasing the list, we need to mark it as freed.
Oversight from commit a11cbb6954f08edd0d8fb5eeca1debb289fdb9af
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Mar 15 21:11:48 2016 +0000
sna/dri2: Cancel all pending events when the window is resized
which reused the code for destroying the window (where priv->chain will
not be accessed again afterwards).
Reported-by: Jiri Slaby <jirislaby at gmail.com>
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index e3dce81..c30e0fa 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -1863,6 +1863,8 @@ static void decouple_window(WindowPtr win,
if (!info->queued)
sna_dri2_event_free(info);
}
+
+ priv->chain = NULL;
}
}
More information about the xorg-commit
mailing list