Fixed the most common crash on exit, still one more hiding and crashing in libc

This commit is contained in:
2018-02-17 14:54:43 -08:00
parent d6bdcbdeca
commit c17d937ee5
13 changed files with 37 additions and 13 deletions

View File

@@ -74,10 +74,10 @@ void VrEventPublisher::notify_subscribers(std::unique_ptr<vr::Event> event) {
//std::vector<VrEventSubscriber*> *event_type_bucket = &subscribers[event->type];
// Send them the event
// Each and every event that is received in the recieve_event function
// Each and every event that is received in the event_handler function
// will be a unique ptr solely owned by that function
for (auto s : subscribers[event->type]) {
s->recieve_event(this, event->clone());
s->event_handler(this, event->clone());
}
}