[libdvdnav-devel] [PATCH 18/33] Set ifofile pointer to NULL on exit

beandog at gentoo.org beandog at gentoo.org
Thu Jan 15 21:45:30 CET 2015


From: Steve Dibb <steve.dibb at gmail.com>

---
 src/ifo_read.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/ifo_read.c b/src/ifo_read.c
index e12fc5f..2f6e67f 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -599,9 +599,8 @@ void ifoClose(ifo_handle_t *ifofile) {
   free(ifofile->vtsi_mat);
 
   DVDCloseFile(ifofile->file);
-  ifofile->file = 0;
   free(ifofile);
-  ifofile = 0;
+  ifofile = NULL;
 }
 
 
-- 
2.0.4



More information about the libdvdnav-devel mailing list