After 4 dives prior to my 5th dive the light was intermittent on land. I thought there might have been salt in the contacts of the magnetic switch. I soaked it for a while but it still didn't help. I switched the battery, clean the battery contacts, cleaned the magnetic switch but no improvement. I re-soldered the emitter wires, didn't help.
I noticed that it worked facing down but not horizontal or facing upwards. - Gravity. Something was rattling in the head. I took the whole head apart. The aluminum ring that holds the CREE emitter was loose. I tightened it and the rattling was gone. The light works fine again.
Don't know how it would get loose, I suspect it was rushed during assembly.
Had the exact same problem with mine. It was ok for a few dives then started to develop an intermittent flicker.
After pulling the head apart and cranking down the silver retaining ring it has been fine ever since. I have a second trustfire on it's way to me now. On this one I will pre-emptively torque down the retaining ring before it gets wet for the first time.