ReactiveX / RxCpp

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

memory leak when using repeat(void) #153

Closed hoffis closed 9 years ago

hoffis commented 9 years ago

after running snippet below memory increase infinitely

#include <rxcpp/rx.hpp>
#include <iostream>

int main(int argc,char** argv)
{
    rxcpp::sources::range(1,10)
    .repeat()
    .subscribe([](auto i)
    {
        std::cout << i << std::endl;
    });
    return 0;
}
kirkshoop commented 9 years ago

Thanks! This is fixed.