GameObject gets destroyed after its TrailRenderer is toggled a few times

Working on Unity iPhone, I have a GUI.Toggle on the screen and that toggles a boolean on my main camera's script. Then, I am using this boolean in another object, to determine if its Trail Renderer should be enabled, using something as simple as this:

function OnGUI() {
    trailRenderer.enabled = CameraScript.showTrail;
}

This works the first time I click the toggle (it hides the trail) and sometimes it even works when I click again (it shows the trail) as it should. But after 1-3 clicks the GameObject just disappears. Gets destroyed and is no longer in my scene's hierarchy. Is this a bug? Isn't the `enabled` property of the TrailRenderer meant to be toggled?

Thank you

Have you got the autoDestruct property enabled by mistake?