ReactiveX / RxCpp

Reactive Extensions for C++
Apache License 2.0
3.06k stars 396 forks source link

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

Closed victimsnino closed 3 years ago

victimsnino commented 3 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 3 years ago

@kirkshoop , can you submit it, please?