Use make_unique to construct EventInfo
Use make_unique
to construct EventInfo
in the event loop. Other than making memory ownership more explicit and getting rid of naked new
s, it has the small advantage of not leaking memory if the EventInfo
constructor throws, which can happen as we allocate a vector during construction.