Fix crash in ui::XShmImagePool::DispatchShmCompletionEvent
The issue can be reproduced by creating and closing windows really fast (like when you're using a tiling WM and dragging tabs and it sort of bugs out). In that case the following was getting hit: CHECK(!swap_closures_.empty()); The solution is to do loop through |swap_closures_| and remove only the matching element. BUG=1057943 R=nickdiego Change-Id: Ib55f6326df6c444adf1bdc6f710785a05cb0d619 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090354 Commit-Queue: Nick Yamane <nickdiego@igalia.com> Reviewed-by:Nick Yamane <nickdiego@igalia.com> Auto-Submit: Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/master@{#747658}
Showing
Please register or sign in to comment