summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-23 13:54:19 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-23 13:55:39 +0100
commit4153d4b43004cd90c0d9a7a7db399dac4d30721e (patch)
treec261f23b42b44cf4138e9be368dd05054b4ef04b
parentf2b2b6eda009924e5ec6974bb31be9d3749c9cf8 (diff)
sna/dri2: Tidy freeing the queued frame events
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_dri2.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index d4d099d9..e4f1c842 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -1481,14 +1481,7 @@ void sna_dri2_destroy_window(WindowPtr win)
DBG(("%s: freeing chain\n", __FUNCTION__));
- info = priv->chain;
- info->draw = NULL;
- info->client = NULL;
-
- chain = info->chain;
- info->chain = NULL;
-
- assert(info->queued);
+ chain = priv->chain;
while ((info = chain)) {
info->draw = NULL;
info->client = NULL;