Fixed memory leak in __triggerMessageEvent.
Merge pull request #8 from jrouault/fix/messagingLeak

Fixed memory leak in __triggerMessageEvent.