summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;