]> git.sesse.net Git - vlc/commitdiff
Fixed memleak if no data are read or poke (zip).
authorLaurent Aimar <fenrir@videolan.org>
Sat, 27 Feb 2010 21:01:02 +0000 (22:01 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 27 Feb 2010 23:27:08 +0000 (00:27 +0100)
modules/access/zip/zipstream.c

index e84634ec48f3392ba23e99a2c95e3eebec199973..59875afc046a4ec7c5606cd91b483013b8ad2a85 100644 (file)
@@ -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 );