state: avoid walking off empty list
authorØyvind Kolås <pippin@linux.intel.com>
Wed, 16 Jun 2010 16:44:06 +0000 (17:44 +0100)
committerØyvind Kolås <pippin@linux.intel.com>
Wed, 16 Jun 2010 16:45:13 +0000 (17:45 +0100)
commit351b6c0543390a3e1289aec7cf14058ffc4eb6af
tree202d72129669a916d68078752eb62489f807f139
parent35c6179a8e01ca02ee3239ec8e4a0379e41ada09
state: avoid walking off empty list

When removing the last key in a list, the last part of the for statement
could cause dereferencing (NULL)->next and thus segfaulting.
clutter/clutter-state.c