Re #8602. Fixed a memory leak.
Merge branch 'bugfix/8602_let_events_fail' into develop