When this.object1.loop(); is called new object gets created.
When above object is assigned to this.object1 the reference to old object is lost and will garbage collected.