How do I fix my camera on my iphone 4?
Is the phone jailbroken? If so, try running it not jailbroken for a while to see if the problem reoccurs.

Other than that, try an OS restore - just make sure you do a backup first.