From 2f8b2d9a8ef5a5b58774fd7a5957b97a25d6995d Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 28 Aug 2019 17:37:18 +0200 Subject: [PATCH] Fix deletion of array in fswatcher_inotify --- src/unix/fswatcher_inotify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/fswatcher_inotify.cpp b/src/unix/fswatcher_inotify.cpp index 9f999ccfe6..1571eb51f5 100644 --- a/src/unix/fswatcher_inotify.cpp +++ b/src/unix/fswatcher_inotify.cpp @@ -533,7 +533,7 @@ protected: } m_cookies.erase(it); - delete &inevt; + delete[] (char*)&inevt; it = m_cookies.begin(); } }