Fixed string destruction (class_name might be reused and stored somewhere in __autoload()).