FIX: prevents appEvents to leak (PR #7714)

GitHub

You’ve signed the CLA, jjaffeux. Thank you! This pull request is ready for review.