Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Fix memory leak
Dieser Commit ist enthalten in:
Ursprung
73ee2498e8
Commit
b1e8efb00b
@ -69,10 +69,14 @@ public class BungeeEncodeHandler extends MessageToMessageEncoder<ByteBuf> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (needsCompress) {
|
if (needsCompress) {
|
||||||
|
ByteBuf old = bytebuf;
|
||||||
bytebuf = BungeePipelineUtil.compress(ctx, bytebuf);
|
bytebuf = BungeePipelineUtil.compress(ctx, bytebuf);
|
||||||
}
|
old.release();
|
||||||
|
out.add(bytebuf);
|
||||||
|
} else {
|
||||||
out.add(bytebuf.retain());
|
out.add(bytebuf.retain());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren