diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-09-09 22:04:17 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-09-10 10:35:15 +0000 |
commit | a2bd8e11f6c9196f968fc1944952077416921307 (patch) | |
tree | 96fba7e50e171c2f9c7367b7186193bfebfe9d53 | |
parent | 506c0685a3b78d3ea3c7eceeec48303e071c41b4 (diff) | |
download | qt-creator-a2bd8e11f6c9196f968fc1944952077416921307.tar.gz |
Git: Fix crash
An asynchronous command deletes itself when it ends.
Raw pointer is a bad idea.
Task-number: QTCREATORBUG-15051
Change-Id: Ie2b3a90e308a4bb1e414f924a836d816abf1dfd1
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r-- | src/plugins/git/gitclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index ad8944a712..22e29e14e7 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -134,7 +134,7 @@ protected: const QString m_directory; private: - VcsCommand *m_command; + QPointer<VcsCommand> m_command; }; BaseController::BaseController(IDocument *document, const QString &dir) : |