fix minor connection leak

This commit is contained in:
Eduardo Bart
2012-01-13 13:41:57 -02:00
parent eb308997d4
commit f57d46de0e
6 changed files with 30 additions and 16 deletions

View File

@@ -29,6 +29,11 @@ Protocol::Protocol()
m_checksumEnabled = false;
}
Protocol::~Protocol()
{
disconnect();
}
void Protocol::connect(const std::string& host, uint16 port)
{
m_connection = ConnectionPtr(new Connection);