]> git.sesse.net Git - vlc/commitdiff
* input/subtitles.c: first subtitle search path was not used.
authorYoann Peronneau <yoann@videolan.org>
Sat, 24 Apr 2004 07:27:41 +0000 (07:27 +0000)
committerYoann Peronneau <yoann@videolan.org>
Sat, 24 Apr 2004 07:27:41 +0000 (07:27 +0000)
src/input/subtitles.c

index e821f43c015b45dd3489e1a91f0781b38ad55774..84f6a2a00449869a7bf0a4bc1c703ada95ac28b2 100644 (file)
@@ -369,7 +369,7 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
             }
             closedir( d );
         }
-        free( *subdirs++ );
+        if( j >= 0 ) free( *subdirs++ );
     }
 
     if( tmp_subdirs ) free( tmp_subdirs );