fix mem_stream leak.

This commit is contained in:
shintaro-t 2018-08-22 10:55:31 +09:00
parent d2aa2277d9
commit dcd9b72bf9

View File

@ -890,8 +890,8 @@ int32_t mz_zip_writer_close(void *handle)
if (writer->mem_stream != NULL)
{
mz_stream_mem_close(writer->file_stream);
mz_stream_mem_delete(&writer->file_stream);
mz_stream_mem_close(writer->mem_stream);
mz_stream_mem_delete(&writer->mem_stream);
}
return err;