From: Vadim Zeitlin Date: Sat, 28 May 2011 19:35:13 +0000 (+0000) Subject: Free calloc()'d pointer correctly in wxFSWatchEntryMSW. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1ee1662007756286fbd09004700a55ed7f866703?ds=sidebyside 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 --- 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