Change HTTPCallback::OnReceiveData to use UniqueBuffer
See: https://github.com/OpenTTD/OpenTTD/issues/11636
This commit is contained in:
@@ -389,12 +389,10 @@ void NetworkSurveyHandler::OnFailure()
|
||||
this->loaded.notify_all();
|
||||
}
|
||||
|
||||
void NetworkSurveyHandler::OnReceiveData(const char *data, size_t)
|
||||
void NetworkSurveyHandler::OnReceiveData(UniqueBuffer<char> data)
|
||||
{
|
||||
if (data == nullptr) {
|
||||
Debug(net, 1, "Survey: survey results sent");
|
||||
this->loaded.notify_all();
|
||||
} else {
|
||||
free(data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user