If you put the variable as nil without disconnecting the function it will remain connected, the correct thing is to disconnect the connection and then place it as nil, so the garbage collector can clean up the memory it used.

2 Likes