Skip to content

group_by with not completed observable issue #403

Open
@diorcety

Description

@diorcety

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions