db/upnp/Discovery: unlock mutex before deleting DiscoveredTask

This commit is contained in:
Max Kellermann 2014-01-22 21:48:33 +01:00
parent a0bee9fa0a
commit 71928b473e

View File

@ -88,8 +88,9 @@ UPnPDeviceDirectory::discoExplorer()
}
}
const ScopeLock protect(mutex);
mutex.lock();
directories[std::move(tsk->deviceId)] = std::move(d);
mutex.unlock();
delete tsk;
}