Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +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) {
|
||||
ByteBuf old = bytebuf;
|
||||
bytebuf = BungeePipelineUtil.compress(ctx, bytebuf);
|
||||
old.release();
|
||||
out.add(bytebuf);
|
||||
} else {
|
||||
out.add(bytebuf.retain());
|
||||
}
|
||||
out.add(bytebuf.retain());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren