Fixed memory leak. Hooray!