diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-16 08:27:34 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-16 08:28:15 +0000 |
commit | 4eb2d9dc92cec2053c76df5dc923f5552fd06c9e (patch) | |
tree | 3f844c346c29d42cf3c62ef5d12ce5a5aee7b7a0 /src | |
parent | b6f204b62bbf2d0918761bb7773d2f80fff985fd (diff) |
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@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@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_dri2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index e3dce811..c30e0fa1 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; } } |