sna/dri2: Tidy freeing the queued frame events
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Jul 2014 12:54:19 +0000 (13:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Jul 2014 12:55:39 +0000 (13:55 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_dri2.c

index d4d099d..e4f1c84 100644 (file)
@@ -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;