Prevent memory leak

This commit is contained in:
Ghost_chu committed 2021-07-27 23:41:20 +08:00
1 parent 53e9cb6066
commit ece3794f0e
1 file changed
+1
@@ -271,6 +271,7 @@ public class VirtualDisplayItem extends DisplayItem {
protocolManager.getAsynchronousManager().unregisterAsyncHandler(packetAdapter);
//protocolManager.removePacketListener(packetAdapter);
//Prevent memory leak
asyncListenerHandler = null;
packetAdapter = null;
}
}