commit | a1e887bd4648a8117593e8bfcf4a574f3bd837d6 | [log] [tgz] |
---|---|---|
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | Wed May 21 09:20:02 2014 -0700 |
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | Fri May 23 09:57:02 2014 +0300 |
tree | d9d436215a2a798bd708447c0c772a824939f0ed | |
parent | caa70193177ddead97bd686c4669c7696a5538f0 [diff] |
comp-wayland: use safe foreach when destroying outputs wl_list_for_each dereference's output to increment the next iteration of the loop. However, output is free'd inside the loop resulting in a dereference to free'd memory. Use wl_list_for_each_safe instead, which is designed to handle this kind of pattern. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>