Fixed huge memory leak :O