[MPlayer-cvslog] r31690 - trunk/av_sub.c

reimar subversion at mplayerhq.hu
Sun Jul 11 09:37:02 CEST 2010


Author: reimar
Date: Sun Jul 11 09:37:02 2010
New Revision: 31690

Log:
Fix memory leak for subtitles decoded by libavcodec.

Modified:
   trunk/av_sub.c

Modified: trunk/av_sub.c
==============================================================================
--- trunk/av_sub.c	Sun Jul 11 01:31:50 2010	(r31689)
+++ trunk/av_sub.c	Sun Jul 11 09:37:02 2010	(r31690)
@@ -97,6 +97,6 @@ int decode_avsub(struct sh_sub *sh, uint
         }
     }
     if (got_sub)
-        ; // TODO: free sub once there is a free function...
+        avsubtitle_free(&sub);
     return new_type;
 }


More information about the MPlayer-cvslog mailing list