forked from qt-creator/qt-creator
VcsBase: Fix memory leaks
Change-Id: Ibabcf2baf4e31cb9d7e2287a2909ef5653dbbc9c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -543,6 +543,7 @@ VcsBasePlugin::VcsBasePlugin() :
|
||||
|
||||
VcsBasePlugin::~VcsBasePlugin()
|
||||
{
|
||||
delete d->m_versionControl;
|
||||
delete d;
|
||||
}
|
||||
|
||||
|
@@ -73,6 +73,7 @@ VcsPlugin::~VcsPlugin()
|
||||
{
|
||||
VcsOutputWindow::destroy();
|
||||
m_instance = nullptr;
|
||||
delete d;
|
||||
}
|
||||
|
||||
bool VcsPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
|
Reference in New Issue
Block a user