Fixed a crash upon __gc deletion.

Killed a warning about an unused variable.