Added NULL check when freeing room events. (thanks Ripley)