Open
Description
I found an potential issue with flat_map operation when source the is a scoped observable using a factory holding a shared pointer.
In this case my shared pointer is not released after the last unsubscribe of the observable returned by flat_map.
I didn't succeed to produce a minimal example that trigger this issue, but a quick and dirty hack seems to solve the issue:
if I "reset" the state_type source (which is manly not used):
this->source = source_type();
my smart pointer is released when I unsubscribe.
Maybe this is an issue on my side, but I go many times through my code, I don't see the issue