forked from qt-creator/qt-creator
VcsBaseClientImpl: Don't leak VcsCommand instances
The running VcsCommand may leak on shutdown. Make them always a child of a guard object. Change-Id: Ie2d07d15cd13f1c08636bb1e9c5face09c6a782d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -953,7 +953,7 @@ VcsCommand *BazaarPluginPrivate::createInitialCheckoutCommand(const QString &url
|
||||
|
||||
Environment env = m_client.processEnvironment(baseDirectory);
|
||||
env.set("BZR_PROGRESS_BAR", "text");
|
||||
auto command = VcsBaseClient::createVcsCommand(baseDirectory, env);
|
||||
auto command = VcsBaseClient::createVcsCommand(this, baseDirectory, env);
|
||||
command->addJob({m_client.vcsBinary(baseDirectory), args}, -1);
|
||||
return command;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user