Unhook the event handler if it causes error.
authorRui Guo <firemeteor.guo@gmail.com>
Thu, 20 Aug 2009 17:09:20 +0000 (01:09 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Thu, 20 Aug 2009 17:09:20 +0000 (01:09 +0800)
commit6bbcd0a55e62437db80a7f6f8c9f3e5c5b821914
treee9538b65b6167cbb01605d1d21cc2e7d99622456
parent8f24941533cc9f66b6e4fe4bc6891c251f5aa37e
Unhook the event handler if it causes error.

This prevents crash on error caused by caption handler, which will cause stack
overflow.
src/lua.c
src/script.c
src/script.h