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) {
|
void SchedulerThread::signalTask(std::unique_ptr<TaskData>& data) {
|
||||||
_taskData.push(data.release());
|
bool result = _taskData.push(data.get());
|
||||||
_scheduler->wakeupLoop(_loop);
|
if (result) {
|
||||||
|
data.release();
|
||||||
|
_scheduler->wakeupLoop(_loop);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SchedulerThread::run() {
|
void SchedulerThread::run() {
|
||||||
|
|
Loading…
Reference in New Issue