[libdvdnav-devel] [PATCH 17/33] Always free vmgi_mat and vtsi_mat pointers

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


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

---
 src/ifo_read.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/ifo_read.c b/src/ifo_read.c
index 3d63a45..e12fc5f 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -595,11 +595,8 @@ void ifoClose(ifo_handle_t *ifofile) {
 
   ifoFree_VTS_TMAPT(ifofile);
 
-  if(ifofile->vmgi_mat)
-    free(ifofile->vmgi_mat);
-
-  if(ifofile->vtsi_mat)
-    free(ifofile->vtsi_mat);
+  free(ifofile->vmgi_mat);
+  free(ifofile->vtsi_mat);
 
   DVDCloseFile(ifofile->file);
   ifofile->file = 0;
-- 
2.0.4



More information about the libdvdnav-devel mailing list