Commit 74af47de authored by Rémi Duraffort's avatar Rémi Duraffort

dvdread: fix memory leak.

(cherry picked from commit 829f7b9600e048c8fcdec1eb1d90ba8386ab5cc3)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent c480e29b
......@@ -273,6 +273,11 @@ static void Close( vlc_object_t *p_this )
}
}
/* Free the array of titles */
for( int i = 0; i < p_sys->i_titles; i++ )
vlc_input_title_Delete( p_sys->titles[i] );
TAB_CLEAN( p_sys->i_title, p_sys->titles );
/* Close libdvdread */
if( p_sys->p_title ) DVDCloseFile( p_sys->p_title );
if( p_sys->p_vts_file ) ifoClose( p_sys->p_vts_file );
......
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