From 4153d4b43004cd90c0d9a7a7db399dac4d30721e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 23 Jul 2014 13:54:19 +0100 Subject: sna/dri2: Tidy freeing the queued frame events Signed-off-by: Chris Wilson --- src/sna/sna_dri2.c | 9 +-------- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3