Closed benjamin-bader closed 6 years ago
The shared_ptr was the source of the memory leak, because the parent also holds a shared_ptr to the impl instance. Using a weak_ptr breaks the cycle, but makes notifying tx listeners more difficult. std::bind to the rescue!
Fixes #32.
The shared_ptr was the source of the memory leak, because the parent also holds a shared_ptr to the impl instance. Using a weak_ptr breaks the cycle, but makes notifying tx listeners more difficult. std::bind to the rescue!
Fixes #32.