Make sure to check this isn't NULL.
I have had some really nasty crashes forgetting that in the past, even for valve cvars that should be there for sure.
Probably meant DisableDetour() here, destroy would free the CDetour structure, requiring you to call CreateDetour again