Don't try to close a handle already closed
[vlc.git] / src / misc / objects.c
index 2db5941..fb0020f 100644 (file)
@@ -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 );