ReactiveX / RxCpp

Reactive Extensions for C++
Apache License 2.0
3.03k stars 390 forks source link

[FixCrash][Perfomance]Remove unnecessary "this" capture for subjects to prevent crashes for stack subjects variables. #561

Closed victimsnino closed 2 years ago

victimsnino commented 2 years ago

In the case of using replay/behavioral subjects as local variables, it is possible to obtain a crash when the subject variable is destroyed, but the stream is still used.

victimsnino commented 2 years ago

@kirkshoop , can you submit it, please?