fetcher is a VLC object
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 16 May 2009 11:58:33 +0000 (14:58 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 16 May 2009 11:58:57 +0000 (14:58 +0300)
src/playlist/fetcher.c

index 6136d4c..b0bacb7 100644 (file)
@@ -81,7 +81,7 @@ playlist_fetcher_t *playlist_fetcher_New( playlist_t *p_playlist )
                    VLC_THREAD_PRIORITY_LOW ) )
     {
         msg_Err( p_fetcher, "cannot spawn secondary preparse thread" );
-        free( p_fetcher );
+        vlc_object_release( p_fetcher );
         return NULL;
     }