[core] keep track of all events and free them when the loop is destroyed
[core] keep track of all events and free them when the loop is destroyed

tlyu/libverto,Distrotech/libverto,Distrotech/libverto,tlyu/libverto,latchset/libverto,latchset/libverto