Fixes #3801, C4 will no longer destroy the analyzer it's inside of

Committed to dev-freeze because the fix doesn't work with the click code on master
Merge pull request #3822 from Kilakk/dev-freeze

Fixes #3801, C4 will no longer destroy the analyzer it's inside of