Commit 9ee09351 authored by Pierre Ynard's avatar Pierre Ynard

threads: fix leaks on error path

Fix memleak + event leak on wince if thread creation fails
parent c99f6e9b
......@@ -480,6 +480,11 @@ int vlc_clone (vlc_thread_t *p_handle, void * (*entry) (void *), void *data,
SetThreadPriority (hThread, priority);
return 0;
}
#ifdef UNDER_CE
CloseHandle (th->cancel_event);
#endif
free (entry_data);
return errno;
}
......
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