dispose is freeing list after freeing each and every node of list