Hierarchy filling with "New GameObject" : Memory Leak?

Hi,

I’m not sure if I have a memory leak here but my hierarchy keeps filling with this new game object junk and my destroys don’t seem to be removing them.

The culprit script is as follows:

public class DestroyByContact : MonoBehaviour {
    public GameObject explosion;
    public GameObject playerexplosion;
    void OnTriggerEnter(Collider other){
        if (other.tag == "Boundary") {
            return;
        }
        if (other.tag == "Player") {
            GameObject pclone = Instantiate (
               playerexplosion,
               other.transform.position,
               other.transform.rotation) as GameObject;
            Destroy (pclone, 1.0f);
        }
        GameObject eclone = Instantiate (
              explosion,
              transform.position,
              transform.rotation) as GameObject;
        Destroy (other.gameObject);
        Destroy (eclone, 1.0f);
        Destroy (gameObject);
    }
}

Thanks for your time.

  • John

Saved the Project restarted my computer and it went away without editing any code… wonder if this was a bug.