Bugfix memory leak.