-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leak with subject? #242
Comments
Seems to be a bug.
by
Something miss here https://github.com/Reactive-Extensions/RxCpp/blob/master/Rx/v2/src/rxcpp/subjects/rx-subject.hpp#L67 in order to remove from the vector on unsubscription Using ints.subscribe([=](int v) {}); truck allow to rework the observers vector an remove my old subscription. |
Juste after the L67 seems to almost work (but certainly ugly) :)
|
There are issues with circular lifetimes and locks that need to be addressed. I think I was able to fix this in #243. Thank you for the report and diagnosis! This was very helpful! |
I have issue with the following code (reduced for be simpliest as possible).
I'm want to unsubcribe from an observable coming from a subject.
I'm unsubcribed, but the lambda is kept somewhere...
I was expecting
but i have:
Is it normal?
The text was updated successfully, but these errors were encountered: