util: clear pointers on wl_list_remove()
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 9 Nov 2011 14:27:07 +0000 (16:27 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Tue, 29 Nov 2011 12:46:49 +0000 (14:46 +0200)
commit804d5dd348567fd286b8aa5101d3aff95ecd69d7
tree3ada249040f8acf89bea00fe60b03c7182cca149
parentab6b0738c67bb6a3eec5b198ff909dc18a562294
util: clear pointers on wl_list_remove()

Set the next and prev pointers of the removed list element to NULL. This
will catch programming errors that would use invalid list pointers,
double-remove for instance.

It also helps debugging, making it easy to see in gdb if an object is
not in a list.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/wayland-util.c