Merge PR #8: Fix a memory leak reported by valgrind

pull/12/head
Jenkins nymea 2020-02-23 23:38:07 +01:00
commit e1b7595f63
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ void MqttServer::setAuthorizer(MqttAuthorizer *authorizer)
int MqttServer::listen(const QHostAddress &address, quint16 port, const QSslConfiguration &sslConfiguration)
{
SslServer *server = new SslServer(sslConfiguration);
SslServer *server = new SslServer(sslConfiguration, this);
connect(server, &SslServer::clientConnected, d_ptr, &MqttServerPrivate::onClientConnected);
connect(server, &SslServer::clientDisconnected, d_ptr, &MqttServerPrivate::onClientDisconnected);
connect(server, &SslServer::dataAvailable, d_ptr, &MqttServerPrivate::onDataAvailable);