This was usually handled at the end of the switch statement, so if something returns from the function before that, the event has to be freed explicitly.