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

git at videolan.org git at videolan.org
Thu Apr 15 18:54:41 CEST 2010


vlc/vlc-1.0 | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 27 22:01:02 2010 +0100| [d4ae6a43cfb5dbd5b81bdd8494bfb09cf00aad85] | committer: Rémi Denis-Courmont 

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

(cherry picked from commit 7bbc2ae8270ebf737660b25b226bddbab55b70c5)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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 03a7dfd..c09679f 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-commits mailing list