Fixed memory leaks introduced today