EventBus
EventBus copied to clipboard
Where is EventRegistration release.
Hi, thanks for this lib for c++ eventbus.
I have a question.
I find that in AddHandler. it will :EventRegistration* registration = new EventRegistration
But in
virtual void removeHandler() {
if (registered) {
registrations->remove(this);
registered = false;
}
}
I do not find use delete to release it.
Is there a memleak?
Thanks a lot.