Fixed pointer issues for darwin post event.