Clear list after applying qDeleteAll

This commit is contained in:
LordGrey
2023-12-29 18:08:47 +01:00
parent e71185acd9
commit 40d74faa5e
3 changed files with 3 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ void BoblightServer::stop()
return;
qDeleteAll(_openConnections);
_openConnections.clear();
_server->close();

View File

@@ -5,6 +5,7 @@ using namespace commandline;
Parser::~Parser()
{
qDeleteAll(_options);
_options.clear();
}
bool Parser::parse(const QStringList &arguments)

View File

@@ -35,6 +35,7 @@ JsonServer::JsonServer(const QJsonDocument& config)
JsonServer::~JsonServer()
{
qDeleteAll(_openConnections);
_openConnections.clear();
}
void JsonServer::initServer()