From 54bcf05b1df569bc09b8c39ab96508a4a1499868 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Wed, 10 Mar 2021 14:55:06 +0100 Subject: [PATCH] Fix wrong type in Handle::deleteLater() Bug found by Address Sanitizer --- src/base/tools/Handle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/tools/Handle.h b/src/base/tools/Handle.h index a25381d8c..fcd341478 100644 --- a/src/base/tools/Handle.h +++ b/src/base/tools/Handle.h @@ -45,7 +45,7 @@ public: return; } - uv_close(reinterpret_cast(handle), [](uv_handle_t *handle) { delete handle; }); + uv_close(reinterpret_cast(handle), [](uv_handle_t *handle) { delete reinterpret_cast(handle); }); } };