aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cvs
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@theqtcompany.com>2015-06-16 15:24:42 +0200
committerJarek Kobus <jaroslaw.kobus@theqtcompany.com>2015-06-17 17:00:56 +0000
commit684267179e3deb4de8af7a4b8b01948dc6676a79 (patch)
treee134897bf6d62b5175480c96e6b4aea12c8da0d8 /src/plugins/cvs
parent8131aea4f9301fd050a9dfc6141cde8205798b56 (diff)
Properly delete plugins dependent on failed plugin
Init all class member pointers to NULL. This fixes possible crash on exit when dependent plugin was not loaded (e.g. TextEditor was missing). In this case plugin's constructor gets called, initialize() method is _not_ called and destructor gets called -> crash. Properly delete dependent plugins on a plugin which failed to initialize properly. Fix labels of deleted plugins inside an error dialog after pressing "Error Details" from "Installed Plugins" dialog. Change-Id: Iddc029a0f07dcba2501d734d142fb0e69e9383d3 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/cvs')
-rw-r--r--src/plugins/cvs/cvsplugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cvs/cvsplugin.h b/src/plugins/cvs/cvsplugin.h
index 47458336725..c06c71bad8e 100644
--- a/src/plugins/cvs/cvsplugin.h
+++ b/src/plugins/cvs/cvsplugin.h
@@ -167,7 +167,7 @@ private:
inline CvsControl *cvsVersionControl() const;
CvsSettings m_settings;
- CvsClient *m_client;
+ CvsClient *m_client = nullptr;
QString m_commitMessageFileName;
QString m_commitRepository;