close Reader

This commit is contained in:
EAlexa 2020-04-07 16:48:57 +02:00
parent c560e72201
commit b351c33ad3

View File

@ -120,9 +120,9 @@ public class SinglyLinkedList {
cur = cur.next; cur = cur.next;
} }
Node destroy = cur.next; //Node destroy = cur.next;
cur.next = cur.next.next; cur.next = cur.next.next;
destroy = null; // clear to let GC do its work //destroy = null; // clear to let GC do its work
size--; size--;
} }