Update event_handler.cpp

clear list after use