[OTR] Fix a queue of events for modal dialogs.

Also it fixes small memory leak.
[OTR] Bump version and update change log.