Unify the interface for creating/deleting event objects

https://rbcommons.com/s/OpenH264/r/151/