fixed leak showed by instruments. zlib dynamically allocates data structures that have to be freed up