changeset 31624:40c30c70ead0

Fix memory leak for subtitles decoded by libavcodec.
author reimar
date Sun, 11 Jul 2010 07:37:02 +0000
parents 4d4ed6c9039c
children 7c76f46056c9
files av_sub.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/av_sub.c	Sat Jul 10 23:31:50 2010 +0000
+++ b/av_sub.c	Sun Jul 11 07:37:02 2010 +0000
@@ -97,6 +97,6 @@
         }
     }
     if (got_sub)
-        ; // TODO: free sub once there is a free function...
+        avsubtitle_free(&sub);
     return new_type;
 }