Ref the event list before iterating over the scripts
commit08dd892e8957f4c67a66d5145ddb64ff1169bf72
authorBenjamin Otte <otte@gnome.org>
Sun, 30 Sep 2007 23:10:58 +0000 (1 01:10 +0200)
committerBenjamin Otte <otte@gnome.org>
Sun, 30 Sep 2007 23:10:58 +0000 (1 01:10 +0200)
tree310cab7995a90eb044a6d2a581f958ec24225443
parent675e99d0db798e5de8582626cff20073b6384645
Ref the event list before iterating over the scripts

This is necessary to make sure the list stays alive even when a script deletes
it. The sick misteries of hiding random code execution behind seeminlgy innocent
function names. Man, that was a tricky segfault to find.
It even made me add more checks. ;)
libswfdec/swfdec_event.c