GeyserMC / PacketLib

A library for packet-based networking between clients and servers.
MIT License
80 stars 40 forks source link

Fix memory leak by closing De-/Inflater #36

Closed RaphiMC closed 3 years ago

RaphiMC commented 3 years ago

Java's Inflater and Deflater allocates native resources when instantiated. This pull request closes them when the Compression handler is no longer needed (either when the connection is closed or the handler is removed from the pipeline) to clean up allocated native memory.