mirror of https://gitee.com/bigwinds/arangodb
potentially fix leak
This commit is contained in:
parent
542f4bb955
commit
135edf1239
|
@ -171,8 +171,11 @@ void SchedulerThread::destroyTask(Task* task) {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void SchedulerThread::signalTask(std::unique_ptr<TaskData>& data) {
|
||||
_taskData.push(data.release());
|
||||
_scheduler->wakeupLoop(_loop);
|
||||
bool result = _taskData.push(data.get());
|
||||
if (result) {
|
||||
data.release();
|
||||
_scheduler->wakeupLoop(_loop);
|
||||
}
|
||||
}
|
||||
|
||||
void SchedulerThread::run() {
|
||||
|
|
Loading…
Reference in New Issue