Browse Source

add missing close()

Nicolas Cannasse 19 years ago
parent
commit
b678540690
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/neko/zip/Compress.hx

+ 1 - 0
std/neko/zip/Compress.hx

@@ -49,6 +49,7 @@ class Compress {
 		c.setFlushMode(Flush.FINISH);
 		c.setFlushMode(Flush.FINISH);
 		var out = neko.Lib.makeString(_deflate_bound(c.s,s.length));
 		var out = neko.Lib.makeString(_deflate_bound(c.s,s.length));
 		var r = c.run(s,0,out,0);
 		var r = c.run(s,0,out,0);
+		c.close();
 		if( !r.done || r.read != s.length )
 		if( !r.done || r.read != s.length )
 			throw "Compression failed";
 			throw "Compression failed";
 		return out.substr(0,r.write);
 		return out.substr(0,r.write);