From 1ee1662007756286fbd09004700a55ed7f866703 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 May 2011 19:35:13 +0000 Subject: [PATCH] Free calloc()'d pointer correctly in wxFSWatchEntryMSW. OVERLAPPED struct was allocated using calloc() but deleted later. Fix this by deallocating it with free() instead. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/private/fswatcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/msw/private/fswatcher.h b/include/wx/msw/private/fswatcher.h index c6cbdf3d34..3392141efd 100644 --- a/include/wx/msw/private/fswatcher.h +++ b/include/wx/msw/private/fswatcher.h @@ -50,7 +50,7 @@ public: m_path); } } - delete m_overlapped; + free(m_overlapped); } bool IsOk() const -- 2.45.2