Commit d7d7c83c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Do not dereference NULL on DVDCloseFile

parent 86166870
...@@ -937,7 +937,7 @@ void DVDCloseFile( dvd_file_t *dvd_file ) ...@@ -937,7 +937,7 @@ void DVDCloseFile( dvd_file_t *dvd_file )
{ {
int i; int i;
if( dvd_file ) { if( dvd_file && dvd_file->dvd ) {
if( !dvd_file->dvd->isImageFile ) { if( !dvd_file->dvd->isImageFile ) {
for( i = 0; i < TITLES_MAX; ++i ) { for( i = 0; i < TITLES_MAX; ++i ) {
if( dvd_file->title_devs[ i ] ) { if( dvd_file->title_devs[ i ] ) {
......
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