Commit 2a7de277 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: don't destroy variables without destroy callbacks

parent 3b657dc9
...@@ -526,7 +526,7 @@ retry: ...@@ -526,7 +526,7 @@ retry:
for (key = vlc_threadvar_last; key != NULL; key = key->prev) for (key = vlc_threadvar_last; key != NULL; key = key->prev)
{ {
void *value = vlc_threadvar_get (key); void *value = vlc_threadvar_get (key);
if (value != NULL) if (value != NULL && key->destroy != NULL)
{ {
vlc_mutex_unlock (&super_mutex); vlc_mutex_unlock (&super_mutex);
vlc_threadvar_set (key, NULL); vlc_threadvar_set (key, NULL);
......
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