If you set x to nil, the garbage collector can free the memory because there is not a reference to this area.