Fixed the most common crash on exit, still one more hiding and crashing in libc
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user