--- a/util/events.lua Sat Dec 18 21:35:42 2010 +0100
+++ b/util/events.lua Sat Dec 18 23:08:21 2010 +0000
@@ -45,6 +45,9 @@
if map then
map[handler] = nil;
handlers[event] = nil;
+ if next(map) == nil then
+ event_map[event] = nil;
+ end
end
end;
local function add_handlers(handlers)