From a2bd8e11f6c9196f968fc1944952077416921307 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 9 Sep 2015 22:04:17 +0300 Subject: 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 Reviewed-by: Orgad Shaneh --- src/plugins/git/gitclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 m_command; }; BaseController::BaseController(IDocument *document, const QString &dir) : -- cgit v1.2.1