Fixed a memory leak. Stupid me.