Fix memory leak in InputAreaViewModel.