Windows: Fixed crash in Object::~Object().