[vlc-devel] commit: Fix memleak. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Aug 12 20:21:54 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Aug 12 20:05:13 2008 +0200| [18d635e38d62ea7afe5caa7b1c4d1dcc52ee9aa2] | committer: Rémi Duraffort
Fix memleak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18d635e38d62ea7afe5caa7b1c4d1dcc52ee9aa2
---
modules/stream_out/mosaic_bridge.c | 1 +
modules/video_filter/deinterlace.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/stream_out/mosaic_bridge.c b/modules/stream_out/mosaic_bridge.c
index beb16b5..a28986c 100644
--- a/modules/stream_out/mosaic_bridge.c
+++ b/modules/stream_out/mosaic_bridge.c
@@ -266,6 +266,7 @@ static int Open( vlc_object_t *p_this )
memcpy( &p_sys->i_chroma, val.psz_string, 4 );
msg_Dbg( p_stream, "Forcing image chroma to 0x%.8x (%4.4s)", p_sys->i_chroma, (char*)&p_sys->i_chroma );
}
+ free( val.psz_string );
#define INT_COMMAND( a ) do { \
var_Create( p_stream, CFG_PREFIX #a, \
diff --git a/modules/video_filter/deinterlace.c b/modules/video_filter/deinterlace.c
index 4ec8333..d6ffd99 100644
--- a/modules/video_filter/deinterlace.c
+++ b/modules/video_filter/deinterlace.c
@@ -2187,6 +2187,7 @@ static int OpenFilter( vlc_object_t *p_this )
var_Get( p_filter, FILTER_CFG_PREFIX "mode", &val );
var_Create( p_filter, "deinterlace-mode", VLC_VAR_STRING );
var_Set( p_filter, "deinterlace-mode", val );
+ free( val.psz_string );
if ( Create( VLC_OBJECT(p_vout) ) != VLC_SUCCESS )
{
More information about the vlc-devel
mailing list