[vlc-devel] commit: Fixed a picture memleak in clone. (Laurent Aimar )
git version control
git at videolan.org
Tue Jun 9 20:00:28 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jun 7 23:15:13 2009 +0200| [8ede742f1461b525d439034ee4d6d7937a8e5556] | committer: Laurent Aimar
Fixed a picture memleak in clone.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ede742f1461b525d439034ee4d6d7937a8e5556
---
modules/video_filter/clone.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/video_filter/clone.c b/modules/video_filter/clone.c
index 1746dd9..a96169b 100644
--- a/modules/video_filter/clone.c
+++ b/modules/video_filter/clone.c
@@ -181,10 +181,14 @@ static int Filter( video_splitter_t *p_splitter,
picture_t *pp_dst[], picture_t *p_src )
{
if( video_splitter_NewPicture( p_splitter, pp_dst ) )
+ {
+ picture_Release( p_src );
return VLC_EGENERIC;
+ }
for( int i = 0; i < p_splitter->i_output; i++ )
picture_Copy( pp_dst[i], p_src );
+
picture_Release( p_src );
return VLC_SUCCESS;
}
More information about the vlc-devel
mailing list