Draft: Resolve "enh(core): prevent slots being called when slot owner has been already destroyed"
requested to merge 1141-enh-core-prevent-slots-being-called-when-slot-owner-has-been-already-destroyed into dev
Description
Prevent slots being called when slot owner has been already destroyed by optionally storing a weak pointer in the Slot object. This allows zero code change and will work as long as you inherit from HasSlots
and use HasSlots::newSlot()
to create slots.
Closes #1141
How to test it?
- unit test
Edited by Didier WECKMANN