diff subreader.c @ 3543:5a11cbf8791f

some small sub bug fix
author pontscho
date Mon, 17 Dec 2001 00:07:20 +0000
parents 8519aba2644d
children a33d0351630e
line wrap: on
line diff
--- a/subreader.c	Mon Dec 17 00:03:50 2001 +0000
+++ b/subreader.c	Mon Dec 17 00:07:20 2001 +0000
@@ -802,7 +802,18 @@
 	printf ("Subtitles dumped in \'dump.mpsub\'.\n");
 }
 
-
+void sub_free( subtitle * subs )
+{
+ int i;
+ 
+ if ( !subs ) return;
+ 
+ sub_num=0;
+ sub_errs=0;
+ for ( i=0;i<subs->lines;i++ ) free( subs->text[i] );
+ free( subs );
+ subs=NULL;
+}
 
 #ifdef DUMPSUBS
 int main(int argc, char **argv) {  // for testing