[vlc-commits] commit: Win32: don't destroy variables without destroy callbacks ( =?UTF-8?Q?R=C3=A9mi=20Denis=2DCourmont=20?=)
git at videolan.org
git at videolan.org
Sat Nov 27 19:01:05 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 27 20:00:45 2010 +0200| [2a7de277df8c501d403a03353974d3298224223f] | committer: Rémi Denis-Courmont
Win32: don't destroy variables without destroy callbacks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a7de277df8c501d403a03353974d3298224223f
---
src/win32/thread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/win32/thread.c b/src/win32/thread.c
index a845585..63e181d 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -526,7 +526,7 @@ retry:
for (key = vlc_threadvar_last; key != NULL; key = key->prev)
{
void *value = vlc_threadvar_get (key);
- if (value != NULL)
+ if (value != NULL && key->destroy != NULL)
{
vlc_mutex_unlock (&super_mutex);
vlc_threadvar_set (key, NULL);
More information about the vlc-commits
mailing list