Fix for removing too many event handlers (that's why "Goodbye" never got printed")

This commit is contained in:
ridiculousfish
2012-02-17 11:36:49 -08:00
parent 6e58c9f7c8
commit 9787901ddb
4 changed files with 22 additions and 9 deletions

View File

@@ -214,7 +214,7 @@ static bool function_remove_ignore_autoload(const wcstring &name)
if (erased) {
event_t ev(EVENT_ANY);
ev.function_name=name.c_str();
ev.function_name=name;
event_remove( &ev );
}
return erased;