Commit cb55a7ee authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential double free (cid #1047501 and #1047502))

parent 873c7e91
......@@ -279,8 +279,6 @@ static int Open( vlc_object_t *p_this )
p_sys->psz_path = strdup( url.psz_path ? url.psz_path : "/" );
vlc_UrlClean( &url );
TAB_INIT( p_sys->i_media, p_sys->media );
p_sys->i_media_id = 0;
......@@ -296,6 +294,7 @@ static int Open( vlc_object_t *p_this )
goto error;
}
vlc_UrlClean( &url );
return VLC_SUCCESS;
error:
......
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