diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-09 12:36:47 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-11-20 13:12:27 -0800 |
commit | e5a188cb919edee2e3a03054276bce0db02f7b62 (patch) | |
tree | b907abd2d81d8392b3e656f507ac5c710bb8b85e /dix | |
parent | a5bcc4f7b9499caf8993f0a6ef96088553399ca3 (diff) |
present: Signal destroyed flip window with vblank->window == NULL
This eliminates dereferencing freed window pointers when there is a
flip for that window in progress. The flip will complete, and then
immediately get undone (as we can't stop an in-progress flip).
Remove the vblank->window_destroyed field as we can signal this with
vblank->window == NULL instead.
Change check to vblank->window == NULL in:
present_flip_notify
Add check for vblank->window == NULL in:
present_vblank_notify
present_execute
present_flip_notify was also using vblank->window->drawable.pScreen,
so stop doing that and use vblank->screen instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'dix')
0 files changed, 0 insertions, 0 deletions