clear the ids map in IdleRegister::destroy (prevent double deallocation)

Fixes #3849
This commit is contained in:
Alberto Griggio
2017-04-29 14:48:54 +02:00
parent d8e0207b9a
commit 7553d86b11

View File

@@ -91,6 +91,7 @@ void IdleRegister::destroy()
DataWrapper *w = static_cast<DataWrapper *>(id.first);
delete w;
}
ids.clear();
mutex.unlock();
}