Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 426de1ba12c1f0310db28f98c65a7f55d210574f 1 parent f2a0d74
@daniel-kristjansson daniel-kristjansson authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythplugins/mythzoneminder/mythzoneminder/zmclient.cpp
View
7 mythplugins/mythzoneminder/mythzoneminder/zmclient.cpp
@@ -91,7 +91,7 @@ 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;
}
@@ -99,7 +99,7 @@ bool ZMClient::connectToHost(const QString &lhostname, unsigned int lport)
//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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.