[vlc-devel] commit: Fixed memleak if no data are read or poke (zip). (Laurent Aimar )

git version control git at videolan.org
Sun Feb 28 00:27:38 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 27 22:01:02 2010 +0100| [7bbc2ae8270ebf737660b25b226bddbab55b70c5] | committer: Laurent Aimar 

Fixed memleak if no data are read or poke (zip).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7bbc2ae8270ebf737660b25b226bddbab55b70c5
---

 modules/access/zip/zipstream.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/zip/zipstream.c b/modules/access/zip/zipstream.c
index e84634e..59875af 100644
--- a/modules/access/zip/zipstream.c
+++ b/modules/access/zip/zipstream.c
@@ -232,6 +232,9 @@ void StreamClose( vlc_object_t *p_this )
     stream_t *s = (stream_t*)p_this;
     stream_sys_t *p_sys = s->p_sys;
 
+    if( p_sys->zipFile )
+        unzClose( p_sys->zipFile );
+
     free( p_sys->fileFunctions );
     free( p_sys->psz_xspf );
     free( p_sys->psz_path );




More information about the vlc-devel mailing list