From 1b8859320586436a299a9152492696924cef47ac Mon Sep 17 00:00:00 2001
From: Geoffroy Couprie <geo.couprie@gmail.com>
Date: Thu, 11 Sep 2008 11:21:45 +0200
Subject: [PATCH] Don't try to close a handle already closed

---
 src/misc/objects.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 2db5941..fb0020f 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -314,12 +314,6 @@ static void vlc_object_destroy( vlc_object_t *p_this )
 
     FREENULL( p_this->psz_object_name );
 
-#if defined(WIN32) || defined(UNDER_CE)
-    /* if object has an associated thread, close it now */
-    if( p_priv->thread_id )
-       CloseHandle(p_priv->thread_id);
-#endif
-
     vlc_spin_destroy( &p_priv->ref_spin );
     vlc_mutex_destroy( &p_priv->lock );
     vlc_cond_destroy( &p_priv->wait );
-- 
1.5.6.4

