]> git.saurik.com Git - wxWidgets.git/commitdiff
Free calloc()'d pointer correctly in wxFSWatchEntryMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 May 2011 19:35:13 +0000 (19:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 May 2011 19:35:13 +0000 (19:35 +0000)
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

index c6cbdf3d34c67e79d4dd5640b10707b2bc2df0b3..3392141efddd0389bf5d1b1100b1853a21772df8 100644 (file)
@@ -50,7 +50,7 @@ public:
                                 m_path);
             }
         }
-        delete m_overlapped;
+        free(m_overlapped);
     }
 
     bool IsOk() const