Permalink
Browse files

Refs #10311. Port zoneminder use for MythSocket to ReferenceCounter.

  • Loading branch information...
daniel-kristjansson committed Jun 14, 2012
1 parent f2a0d74 commit 426de1ba12c1f0310db28f98c65a7f55d210574f
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythplugins/mythzoneminder/mythzoneminder/zmclient.cpp
@@ -91,15 +91,15 @@ bool ZMClient::connectToHost(const QString &lhostname, unsigned int lport)
.arg(m_hostname).arg(m_port).arg(count));
if (m_socket)
{
- m_socket->DownRef();
+ m_socket->DecrRef();
m_socket = NULL;
}
m_socket = new MythSocket();
//m_socket->setCallbacks(this);
if (!m_socket->connect(m_hostname, m_port))
{
- m_socket->DownRef();
+ m_socket->DecrRef();
m_socket = NULL;
}
else
@@ -243,7 +243,8 @@ ZMClient::~ZMClient()
if (m_socket)
{
- m_socket->DownRef();
+ m_socket->DecrRef();
+ m_socket = NULL;
m_zmclientReady = false;
}

0 comments on commit 426de1b

Please sign in to comment.