Commit 4f9a3ecd authored by Gilles Caulier's avatar Gilles Caulier 🗼

first step to fix memory leak reported by clang using QSharedPointer

parent 7304619b
Pipeline #10639 failed with stage
in 60 minutes
......@@ -28,6 +28,7 @@
#include <QWidget>
#include <QMutex>
#include <QQueue>
#include <QSharedPointer>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QCryptographicHash>
......@@ -116,8 +117,8 @@ void RajceTalker::startCommand(RajceCommand* const command)
void RajceTalker::login(const QString& username, const QString& password)
{
LoginCommand* const command = new LoginCommand(username, password);
enqueueCommand(command);
QSharedPointer<LoginCommand> command = QSharedPointer<LoginCommand>(new LoginCommand(username, password));
enqueueCommand(command.get());
}
void RajceTalker::loadAlbums()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment