Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Fix memory leak
Dieser Commit ist enthalten in:
Ursprung
73ee2498e8
Commit
b1e8efb00b
@ -69,9 +69,13 @@ 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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren