Skip to content

Commit

Permalink
Release allocated resources in Zlib, fixes #43. (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Feb 16, 2022
1 parent 1a1e734 commit fc7900c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/write_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ function data_to_xml_appended(vtk::DatasetFile, xDA::XMLElement, data)
write_array(zWriter, data)
write(zWriter, TranscodingStreams.TOKEN_END)
flush(zWriter)
TranscodingStreams.finalize(zWriter.codec) # Release allocated resources (issue #43)

# Go back to `initpos` and write real header.
endpos = position(buf)
Expand Down

0 comments on commit fc7900c

Please sign in to comment.