
I have a struct like this one:
struct foo
{
IBar* ptr;
};
which is part of a foo object with a long lifetime. Users often get instances of those objects in different callbacks and sometimes they inject stuff into the IBar* in certain places, use it in later callbacks, free it eventually. (...