Fixed memory leak warning.