Make sure domModel is released

Found another instance when domModel could leak causing memory bug.