Commit 120b932d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

ClearCase: Unlock mutex after locking it



Change-Id: I63fe4afd8b40284ac6f93b746928e5320c8d3244
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 69268b2a
......@@ -181,9 +181,9 @@ ClearCasePlugin::ClearCasePlugin() :
m_submitUndoAction(0),
m_submitRedoAction(0),
m_menuAction(0),
m_submitActionTriggered(false),
activityMutex(0)
m_submitActionTriggered(false)
{
activityMutex = new QMutex;
}
ClearCasePlugin::~ClearCasePlugin()
......@@ -191,6 +191,7 @@ ClearCasePlugin::~ClearCasePlugin()
cleanCheckInMessageFile();
// wait for sync thread to finish reading activities
activityMutex->lock();
activityMutex->unlock();
delete activityMutex;
}
......@@ -252,7 +253,6 @@ bool ClearCasePlugin::initialize(const QStringList & /*arguments */, QString *er
initializeVcs(new ClearCaseControl(this));
m_clearcasePluginInstance = this;
activityMutex = new QMutex;
connect(Core::ICore::instance(), SIGNAL(coreAboutToClose()), this, SLOT(closing()));
connect(Core::ICore::progressManager(), SIGNAL(allTasksFinished(QString)),
this, SLOT(tasksFinished(QString)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment