Commit 18d635e3 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix memleak.

parent 51da2ea3
...@@ -266,6 +266,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -266,6 +266,7 @@ static int Open( vlc_object_t *p_this )
memcpy( &p_sys->i_chroma, val.psz_string, 4 ); 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 ); 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 { \ #define INT_COMMAND( a ) do { \
var_Create( p_stream, CFG_PREFIX #a, \ var_Create( p_stream, CFG_PREFIX #a, \
......
...@@ -2187,6 +2187,7 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -2187,6 +2187,7 @@ static int OpenFilter( vlc_object_t *p_this )
var_Get( p_filter, FILTER_CFG_PREFIX "mode", &val ); var_Get( p_filter, FILTER_CFG_PREFIX "mode", &val );
var_Create( p_filter, "deinterlace-mode", VLC_VAR_STRING ); var_Create( p_filter, "deinterlace-mode", VLC_VAR_STRING );
var_Set( p_filter, "deinterlace-mode", val ); var_Set( p_filter, "deinterlace-mode", val );
free( val.psz_string );
if ( Create( VLC_OBJECT(p_vout) ) != VLC_SUCCESS ) if ( Create( VLC_OBJECT(p_vout) ) != VLC_SUCCESS )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment