mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-28 19:17:36 +08:00
Fix memory leaks
This commit is contained in:
Vendored
+1
-1
Submodule 3rdparty/qredisclient updated: 510662851f...ce0a208343
@@ -31,6 +31,7 @@ INITIALIZE_EASYLOGGINGPP
|
||||
|
||||
Application::Application(int &argc, char **argv)
|
||||
: QApplication(argc, argv),
|
||||
m_engine(this),
|
||||
m_qmlUtils(QSharedPointer<QmlUtils>(new QmlUtils())),
|
||||
m_logger(nullptr)
|
||||
{
|
||||
|
||||
@@ -146,8 +146,7 @@ public:
|
||||
QList<QByteArray> cmdParts = m_partialLoadingCmd.split(' ');
|
||||
cmdParts.replace(cmdParts.indexOf("%1"), m_keyFullPath);
|
||||
|
||||
QSharedPointer<RedisClient::ScanCommand> cmd(
|
||||
new RedisClient::ScanCommand(cmdParts, m_dbIndex));
|
||||
RedisClient::ScanCommand cmd(cmdParts, m_dbIndex);
|
||||
try {
|
||||
m_connection->retrieveCollection(cmd, [this, callback, rowStart](QVariant result, QString)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user