intel/aub_viewer: fix access to freed memory
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 17 Jul 2019 11:42:49 +0000 (14:42 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 3 Apr 2020 12:46:24 +0000 (15:46 +0300)
commitb38c32a57380c228813ec59823fd5510ee93ce4c
tree92a4ebf18e45bffd0427c41c055751f1a0bcf039
parent7e6aec668772eb9cac014d78ba95272a063167fe
intel/aub_viewer: fix access to freed memory

Windows closed while we're displaying them might lead to invalid
memory accessed, so use the safe iterators on the list of windows.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4430>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4430>
src/intel/tools/aubinator_viewer.cpp