Commit 4e842f86 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: cancel_data is on the stack, don't free it

In practice, this bug was hidden by another bug in the thread variables
implementation: the destruction callback is never invoked.
parent 2ca4cf27
......@@ -153,7 +153,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDll, DWORD fdwReason, LPVOID lpvReserved)
case DLL_PROCESS_ATTACH:
vlc_mutex_init (&super_mutex);
vlc_cond_init (&super_variable);
vlc_threadvar_create (&cancel_key, free);
vlc_threadvar_create (&cancel_key, NULL);
break;
case DLL_PROCESS_DETACH:
......
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