Fixed memory leaks

This commit is contained in:
SChernykh
2022-06-07 19:40:13 +02:00
parent 8b681d6efb
commit 8af9e9b27d
5 changed files with 12 additions and 4 deletions
+4
View File
@@ -338,6 +338,10 @@ void CurlContext::on_close(uv_handle_t* h)
void Call(const std::string& address, int port, const std::string& req, const std::string& auth, CallbackBase* cb, CallbackBase* close_cb, uv_loop_t* loop)
{
if (!loop) {
loop = uv_default_loop();
}
CallOnLoop(loop,
[=]()
{