add code to reset cCamera in destructer