lavfi: free partial audio buffers when destroying links.
authorNicolas George <nicolas.george@normalesup.org>
Wed, 22 Aug 2012 21:31:49 +0000 (23:31 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Wed, 22 Aug 2012 21:31:49 +0000 (23:31 +0200)
Fix a memleak that the recent change of architecture made
more likely to happen.

libavfilter/avfilter.c

index 861a57d..d05d4ea 100644 (file)
@@ -156,6 +156,8 @@ void avfilter_link_free(AVFilterLink **link)
     if ((*link)->pool)
         ff_free_pool((*link)->pool);
 
+    avfilter_unref_bufferp(&(*link)->partial_buf);
+
     av_freep(link);
 }