sigslot icon indicating copy to clipboard operation
sigslot copied to clipboard

Potential memory leak when weak_ptr compatible object used.

Open 4e4o opened this issue 1 year ago • 3 comments

When signal connected to multiple shared_ptr objects there is no way to delete dead slots with dead objects without invoking slots. Every signal::connect call will increase slot instances. I think signal::connect with weak_ptr should check for dead slots and remove them.

4e4o avatar Apr 07 '23 19:04 4e4o