Closed cneumann closed 10 years ago
Good catch, I assume I just copied from the move constructor (where the local context would have been null anyway) and didn't notice how broken that was.
Thanks for the quick fix! It's probably much more important that you fixed the equivalent issue for the socket move assignment operator, but I was actually referring to the one of the context class, which still has the problem I think ;)
In the above _context is overwritten without being released. How about just doing std::swap(_context, source._context)? That way the _context will be cleaned up by the dtor of source.