]> git.sesse.net Git - vlc/commitdiff
update: Don't release the thread object from this precise thread.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 10 Aug 2008 20:17:12 +0000 (22:17 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 10 Aug 2008 20:17:26 +0000 (22:17 +0200)
This is not safe and not supported.

src/misc/update.c

index 4e83249b840cd902834f3f01c1b886c92994260a..d1620eb8483ad6b28a3857ed9d1ca5354058ff9d 100644 (file)
@@ -1079,6 +1079,7 @@ void update_Delete( update_t *p_update )
     {
         vlc_object_kill( p_update->p_download );
         vlc_thread_join( p_update->p_download );
+        vlc_object_release( p_update->p_download );
     }
 
     vlc_mutex_destroy( &p_update->lock );
@@ -1682,9 +1683,6 @@ end:
     free( p_buffer );
     free( psz_size );
 
-    p_udt->p_update->p_download = NULL;
-
-    vlc_object_release( p_udt );
     return NULL;
 }