Commit 49d534e0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "Elide a bit of code that looks dead. There looks to be a memory leak, too."

This reverts commit 8018c67d.
parent 75c98019
...@@ -87,7 +87,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -87,7 +87,7 @@ static int Create( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t *)p_this; filter_t *p_filter = (filter_t *)p_this;
filter_sys_t *p_sys; filter_sys_t *p_sys;
char *psz_string = NULL; char *psz_string;
if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_YUVA ) if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_YUVA )
{ {
...@@ -108,7 +108,6 @@ static int Create( vlc_object_t *p_this ) ...@@ -108,7 +108,6 @@ static int Create( vlc_object_t *p_this )
p_filter->p_cfg ); p_filter->p_cfg );
p_sys->p_mask = NULL; p_sys->p_mask = NULL;
#if 0 /* This appears to be dead code. Where is psz_string initialized? */
if( psz_string && *psz_string ) if( psz_string && *psz_string )
{ {
LoadMask( p_filter, psz_string ); LoadMask( p_filter, psz_string );
...@@ -117,7 +116,6 @@ static int Create( vlc_object_t *p_this ) ...@@ -117,7 +116,6 @@ static int Create( vlc_object_t *p_this )
psz_string ); psz_string );
} }
free( psz_string ); free( psz_string );
#endif
vlc_mutex_init( &p_sys->mask_lock ); vlc_mutex_init( &p_sys->mask_lock );
psz_string = psz_string =
......
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