]> git.sesse.net Git - vlc/commit
Win32(core): do not duplicate handle
authorErwan Tulou <erwan10@videolan.org>
Wed, 10 Feb 2010 12:19:42 +0000 (13:19 +0100)
committerErwan Tulou <erwan10@videolan.org>
Thu, 10 Jun 2010 21:23:41 +0000 (23:23 +0200)
commitafe774e0b19c7dcad8d0ae248480df1b0660a380
treebc977b6e9c758054e5e0e8d66bdd44e296c5609f
parent99f71e5a62fdd14b031fdc89f452d873e3509c74
Win32(core): do not duplicate handle

Unlike _endthread and ExitThread, _endthreadex doesn't close the handle.
It is therefore up to the caller to close it. Hence no need for an extra
handle duplication (that mostly amounted to a memory leak when the normal
 path was used, i.e normal return from thread with implicit _endthreadex)
src/win32/thread.c