Commit 7dfafb87 authored by Simon Morlat's avatar Simon Morlat

fix memory leak on windows phone 8

parent ed0c1f30
......@@ -307,6 +307,7 @@ static void sleepMs(int ms){
HANDLE sleepEvent = CreateEventEx(NULL, NULL, CREATE_EVENT_MANUAL_RESET, EVENT_ALL_ACCESS);
if (!sleepEvent) return;
WaitForSingleObjectEx(sleepEvent, ms, FALSE);
CloseHandle(sleepEvent);
#endif
#else
struct timespec ts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment