Fix wrong type in Handle::deleteLater()

Bug found by Address Sanitizer
This commit is contained in:
SChernykh 2021-03-10 14:55:06 +01:00
parent bbea8810a7
commit 54bcf05b1d

View file

@ -45,7 +45,7 @@ public:
return; return;
} }
uv_close(reinterpret_cast<uv_handle_t *>(handle), [](uv_handle_t *handle) { delete handle; }); uv_close(reinterpret_cast<uv_handle_t *>(handle), [](uv_handle_t *handle) { delete reinterpret_cast<T>(handle); });
} }
}; };