[matroska] r821 - trunk/DvdMenuXtractor/libdvdread/win32

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2004-09-18 16:39:36 +0400 (Sat, 18 Sep 2004)
New Revision: 821

Modified:
   trunk/DvdMenuXtractor/libdvdread/win32/dirent.c
Log:
fix a memory leak in the dirent for win32 (used in lots of ported apps)

Modified: trunk/DvdMenuXtractor/libdvdread/win32/dirent.c
===================================================================
--- trunk/DvdMenuXtractor/libdvdread/win32/dirent.c	2004-09-18 12:38:26 UTC (rev 820)
+++ trunk/DvdMenuXtractor/libdvdread/win32/dirent.c	2004-09-18 12:39:36 UTC (rev 821)
@@ -205,6 +205,9 @@
     rc = _findclose (dirp->dd_handle);
   }
 
+  if (dirp->dd_dir.d_name)
+	  free(dirp->dd_dir.d_name);
+
   /* Delete the dir structure. */
   free (dirp);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.