Try to fix memory leak in filter graph.
authorCarl Hetherington <cth@carlh.net>
Sat, 25 May 2013 14:59:25 +0000 (15:59 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 25 May 2013 14:59:25 +0000 (15:59 +0100)
src/lib/filter_graph.cc

index b0427a23d0566166921fd6e95eceb5b86c879505..8ff5e75df3d3ee6f5575778147db7210e0350d77 100644 (file)
@@ -150,6 +150,7 @@ FFmpegFilterGraph::process (AVFrame* frame)
                }
 
                images.push_back (shared_ptr<Image> (new SimpleImage (_frame)));
+               av_frame_unref (_frame);
        }
        
        return images;